Hi, elgar;
All the calculators you mentioned already have a built-in pseudo Random Number generator that uses a seed you can type in. The command to generate a pseudo Random number (to level 1) is [RAND] and the command to "collect" a seed (a real number in Level 1) is [RDZ] (randomize).
Using RPL
You can type in the following program:
« -> N
« RAND N * IP
»
»
You can store it with a private name (e.g.: 'MYRAND' [STO]). Also, maybe you probably know about this, but there is no harm mentioning: the [->] symbol refers to the single right-arrow, not a composition of a minus with a greater-than sign. Just for the records and for my own sake...
IP returns the integer part (truncates, no rounding) of the resulting value from RAND (pseudo Random number) times N (your "range"). In this case, N must be in Level 1 prior to execute the program. If you want the program to use an specific N everytime you run it, use only this part:
« RAND N * IP
»
You should store a value in N prior to execute it. Anytime you need to change the range, you simply type the new value for N and press 'N' [STO]. Also, for changing the pseudo sequence, you just type in a real number and execute [RDZ].
Hope this helps.
Luzi (Brazil)
Edited: 1 May 2004, 1:33 p.m.