[Tutor] Random numbers
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Thu Oct 9 20:31:55 EDT 2003
On Sun, 5 Oct 2003, UCT Student - DLLBIA001 wrote:
> i was just wandring if you could not help me to generate 25 random
> numbers in the range of 0 to 24 without any number repeating.
Hello,
Take a close look at:
http://www.python.org/doc/lib/module-random.html
In particular, the shuffle() function should be useful for you.
If you have more questions, please feel free to ask. Because you are
working on a homework assignment, we are somewhat more restricted in
answering fully, but we'll try to direct you toward good resources.
Good luck to you.
More information about the Tutor
mailing list