Hello Dave, If this is for a commercial game, here is a lesson I learned from doing a (Pic-based) game for one of the major US toy firms -- Just about any simple pseudo random sequence no matter how started with true random seed can be guessed by kids! An answer to your question is to save the start seed then remember the incremental offset to get to the n'th "random" number. Our solution was to "play" one random method against another to get to a difficult to match sequence. Tom On Tuesday, February 17, 1998 6:27 AM, David Duffy [SMTP:AVD@UQ.NET.AU] wrote: > Does anyone have any code suitable for generating pseudo random > numbers in a presettable range ? (say 1-20 or 1-50) Or perhaps > some way of randomly re-ordering the numbers 1-20 in a table ? > What I want to do is generate a table of (say 20) numbers in a > sequence such as 2,15,8,1,19,12,etc with all numbers up to the > specified max used. It's a bit like Bingo where eventually every > number will come up but not in any obvious order. Also, each > "run" sequence needs to be different from the last one. I know > that it's a tall order but even a starting point would help. > Regards... > _______________________________________________________________ > Dave Duffy Audio Visual Devices AVD@uq.net.au > Unit 8, 9-11 Trade Street, Cleveland, Queensland 4163 Australia > Phone: +61 7 38210362 Facsimile: +61 7 38210281 > _______________________________________________________________