Jump to content

Linear congruential generator: Difference between revisions

m
→‎{{header|REXX}}: added a comment describing what the // REXX operator is.
m (→‎{{header|REXX}}: changed the REXX program comment.)
m (→‎{{header|REXX}}: added a comment describing what the // REXX operator is.)
Line 2,696:
say center(' seed='seed" ", 79, '─') /*display the seed in a title/separator*/
/* [↓] show 20 rand #'s for each seed.*/
do j=1 for 20 /*generate and& display 20 randrandom numbers.*/
bsd = (1103515245 * bsd + 12345) // two@@31
ms = ( 214013 * ms + 2531011) // two@@31
/* // is the REXX remainder operator*/
say ' state' right(j,3) " BSD" right(bsd, 11) left('', 13),
" MS" right( ms, 11) left('', 5),
Cookies help us deliver our services. By using our services, you agree to our use of cookies.