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 == TRUE
if x > 1950 || x < 2000
return x
pipi = 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: atma@convalesco.org
URL: http://www.convalesco.org
GnuPG ID: 0xFC4E8BB4
gpg --keyserver x-hkp://pgp.mit.edu --recv-keys 0xFC4E8BB4
--
The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."