Show pageDiscussionOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== RDZ ==== <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> ---- Initialize pseudo-random number generator with a seed </callout> <callout color="green" icon="fa fa-indent" title="Stack Diagram"> ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **Num<sub>seed</sub>** | **→** | **** | | //Level 1// | //→// | //Level 1// | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} | **Keyword type** | [[manual:chapter5:basics#commands|Command]] || | **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-4commands-that-set-modes-states|Group 4]] | //Commands that set modes / states// | | **Affected by flags** | //None// || </callout> <callout color="orangered" icon="fa fa-comment" title="Description"> ---- The ''RDZ'' command initializes the [[http://prng.di.unimi.it/|xoroshiro128+ (v1.0)]] pseudo-random number generator with a seed. The same seed will generate always the same pseudo-random sequence, provided internal precision is the same. </callout> <callout type="success" icon="true" title="Compatibility"> ---- ''RDZ'' is fully equivalent to its **userRPL** counterpart. </callout> <callout type="info" icon="true" title="Usage"> ---- **__Input__** <code> « 32 SETPREC -1 RDZ RAND » </code> \\ **__Output__** <code> 4: 3: 2: 1: 0.437333743646 ………………………………………………………………………………………………………… </code> </callout> <callout color="darkgray" icon="fa fa-hand-o-right" title="Related Commands"> ---- {{page>manual:chapter6:statistics&nofooter&noeditbtn&inline}} </callout> manual/chapter6/statistics/cmd_rdz.txt Last modified: 2021/09/22 11:46by jojo1973