From: Fleck Jean-Julien Date: 2009-12-29T19:28:09+09:00 Subject: Re: Question abour rand() Hello, > 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 Perhaps you were thinking of "and" rather than "or" because all number is either greater than 1950 or smaller than 2000. > 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. Does 'rand(50) + 1950' do what you want ? Cheers, -- JJ Fleck PCSI1 Lycée Kléber