Thursday, January 17, 2013

generate number of random numbers that have not repeat in a given range in python


random.sample(range(1, 16), 3)
[11, 10, 2]

0 comments:

Post a Comment