0

In Python, what is the most scrambling 1000-size array which have 0 to 9999 number in each index. Like suffling music when we are using streaming service.

Shaun Ahn
  • 15
  • 4

1 Answers1

1

There is a shuffle function (shuffles in place):

from random import shuffle
shuffle(List_to_shuffle)
R. Wayne
  • 417
  • 1
  • 9
  • 17