0
Random and pick from those
How do i make a list numbers from 1-64 make them randomize and then pick 7 out of those 64 numbers?
3 odpowiedzi
+ 1
for i in range(100):
print(random.randint(1,64))
or, if you insist on having a list.
nums=[]
for i in range(64):
nums.append(i+1)
for i in range(7):
print(random.choice(nums))
read about for loops, they are your friend
0
Why don't you use random module?
0
hahah @leakyegg yes they are thank you