P
Panagiotis Atmatzidis
Dear Sirs,
I'm looking for a way to create a random sequence of numbers using the =
'rand' method. I can think of something like:
-----
while pipi =3D=3D TRUE
if x > 1950 || x < 2000
return x
pipi =3D FALSE
------
Since however the book that I'm reading has not introduced while/else/if =
etc. I'm thinking that there must be an easier and probably more =
sensible way to approach this. As far as I've read rand(2000) will give =
random numbers from 0-to-2000 no matter what.
NOTE: I don't want to use another method just to do the job.
thanks in advance & best regards
Panagiotis (atmosx) Atmatzidis
email: (e-mail address removed)
URL: http://www.convalesco.org
GnuPG ID: 0xFC4E8BB4=20
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xFC4E8BB4
I'm looking for a way to create a random sequence of numbers using the =
'rand' method. I can think of something like:
-----
while pipi =3D=3D TRUE
if x > 1950 || x < 2000
return x
pipi =3D FALSE
------
Since however the book that I'm reading has not introduced while/else/if =
etc. I'm thinking that there must be an easier and probably more =
sensible way to approach this. As far as I've read rand(2000) will give =
random numbers from 0-to-2000 no matter what.
NOTE: I don't want to use another method just to do the job.
thanks in advance & best regards
Panagiotis (atmosx) Atmatzidis
email: (e-mail address removed)
URL: http://www.convalesco.org
GnuPG ID: 0xFC4E8BB4=20
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xFC4E8BB4