[Tutor] (no subject)
Nick Zarr
jacktradespublic at gmail.com
Mon Oct 17 22:42:47 CEST 2011
I think this was already mentioned in the replies to your other post:
from random import sample
base = int(input("Enter the bottom of the range? "))
upper = int(input("Enter the upper limit of your range: "))
quantity = int(input("How many numbers do you want to select: "))
sample(range(base, upper), quantity)
http://docs.python.org/library/random.html#random.sample
--
Nick Zarczynski <http://rentageekit.com>
Blog 4 <http://nickzarr.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111017/63f64d10/attachment.html>
More information about the Tutor
mailing list