Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get random record

Status
Not open for further replies.
Apr 3, 2005
32
US
I'm trying to create a random sampling recordset, is there a function in WebFocus that will allow me to do that.
Thanks in advance,
 
There are TWO random number generators, depending on whether you want normal distribution (bell shaped) or uniform distribution. The normal distribution routine is called RDNORM; the uniform distribution routine is called RDUNIF. Both have only a double precision (D format) argument.

RDNORM typically returns a random number between 3 and -3, as the number of 'standard deviations' from the mean.

RDUNIF returns a random number between 0 and 1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top