Advertisement
earlution

generate_randomised_list.py

Dec 1st, 2022
850
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import random
  2.  
  3. # generate a list containing 1000 values (0-999)
  4. thousand = list()
  5. for x in range(1000):
  6.     thousand.append(x)
  7.  
  8. # randomly sort generated list
  9. random.shuffle(thousand)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement