Whrandom
Timothy Grant
tjg at hyperlinq.net
Mon May 14 15:14:01 EDT 2001
On Mon, May 14, 2001 at 06:55:09PM +0000, 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
>>> import whrandom
>>> l = []
>>> for x in range(5):
... l.append(whrandom.randint(1,1000))
...
>>> l
[790, 90, 788, 147, 19]
--
Stand Fast,
tjg.
Timothy Grant www.hyperlinq.net
Chief Technology Officer tjg at hyperlinq.net
HyperLINq Technologies, Inc. <>< (503) 246-3630
>>>>>>>>>>>>>Linux, because rebooting is *NOT* normal<<<<<<<<<
>>>>This machine was last rebooted: 47 days 21:26 hours ago<<
More information about the Python-list
mailing list