Razzak, Cool stuff! How about documenting this in R:Syntax?
Also, read carefully the documentation I provided for my random UDF. Once it is automatically random seeded the first time, it acts in a unified way to assure that all uses of it by all networked users are treated as one superuser forever, as long as they access it in the same directory. Not to mention that it can generate huge numbers! This would be great functionality to add to RBase. The superuser concept could be database-centric, rather than directory centric. I chose to use a file to maintain this stream so that no code was required in the app to support this functionality. Dennis McGrath -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of A. Razzak Memon Sent: Monday, February 10, 2003 2:18 AM To: RBASE-L Mailing List Subject: [RBASE-L] - From The Edge: Using RANDOM Function in R:BASE 6.5++ 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.

