Every once in a while, there has been a need for using random numbers in an SQR, unfortunately, SQR does not have such a procedure. To compound the problem, most good PRNG need to use bit level operations, also which SQR does not support very well. I had already built a binary math library (accsl004) so I added a few more procedures to this and created a new library (accsl011) (see the source code library for the files). This library implements the TT800 PRNG originally written by M. Matsumoto,Warning: Theory around this gets deep into a lot of math real quick.
| SQR Linear Pseudorandom Number Generator | Log-in or register a new user account | 1 Comment | |
|
| |
| Comments are statements made by the person that posted them. They do not necessarily represent the opinions of the site editor. |
Re: SQR Linear Pseudorandom Number Generator(Score: 0)by Anonymous on Jul 08, 2005 - 08:10 PM |
|
I am a newbie to SQR (peoplesoft). I have a need to assign a number (range 1-4) to a row that I will extract from a PS table.
For example: I will extract a student enrollment for a particular course and assign a custom column setting it to any of the numbers in the range. Student 1 will be assigned 2 for course 5, student 2 will be assigned 3 for course 5. I have created a customer table in PS to hold the range for each course. SQR doesn't have a random function is there a way to mimic random generation from a list of known values? |