From: Panagiotis Atmatzidis Date: 2009-12-29T18:51:53+09:00 Subject: Question abour rand() --Apple-Mail-1-305267075 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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: atma@convalesco.org URL: http://www.convalesco.org GnuPG ID: 0xFC4E8BB4=20 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." --Apple-Mail-1-305267075--