:style="{
Background location:
( 100/demo list . length * index)+' % '+
(math . random()*( 100- 100/demo list . length *(index+ 1))+( 100/demo list . length * index))+' % '
}"
As for how to generate a reasonable random number, you have to try and choose it yourself slowly. The above example is just a demonstration.