Whrandom

jedi at ccrypt.net jedi at ccrypt.net
Mon May 14 15:21:48 EDT 2001


try this:

import whrandom
x=whrandom.randint
y=1
z=1000
a=5

while a > 0:
        random=x(y,Z)
        print random
        a=a-1


On 14 May 2001, Oskar Stefan wrote:

> Hello!
>
> Could anyone give me an Example how can
> I create 5 Random numbers between 1 and 1000.
> I know this goes with whrandom but I
> become only one number when I write whrandom.randint(1,1000)
> but I will have 5 numbers between 1 and 1000 but no number
> several times.
>
> thanks for your help
>
> osi
> --
> http://mail.python.org/mailman/listinfo/python-list
>





More information about the Python-list mailing list