Monday, February 10, 2003

From The Edge: Using RANDOM Function in R:BASE 6.5++
Section: Functions
Chapter: Running R:BASE Your Way!
Platform: R:BASE 6.5++ and higher

Bill Downall,

This one is for you!

There are three different ways to use RANDOM Function in R:BASE 6.5++.

01. (RANDOM(i))

Returns a random number between 0 and i (when i is positive)

To reset the random seed value make i a negative number whose absolute value is the
seed value.

02. (UDF('_SRAND',seedvalue)) to set the random seed value.
Undocumented UDF RANDOM Function

03. (UDF('_RANDOM',maxvalue)) to get a random value (as text) between 0 and maxvalue.
Undocumented UDF RANDOM Function

Enjoy and make sure to have fun!

Very Best Regards,

Razzak.

Reply via email to