Random number generator

Hi how can i randomize numbers?

8 numbers in lotusscript which i will translate(chr()) into ascii signs(eng alphabet and numbers) and create a password out of it? The numbers must be different so i dont get same or similar passwords!

Help

Branimir

Subject: Random number generator

rnd will do this for you in LotusScript. Then you can take the last 8 digits.

But note that these random number generators are not truly random. They should be random enough if all you’re doing is generating passwords which you will mail out to various users, but if you’re locking away our national security then they’re not random enough. I believe that they’re really hacks on the current date/time.

regards,

raphael

Subject: Random number generator

In addition to the other responses you got on this, also look at using the Randomize statement in your code before you call Rnd.

Subject: RE: Random number generator

you can make use of the following:To generate a random number between any two numbers x and y, use the formula

( y - x )*@Random + x