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. ==== RAND ==== <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> ---- Generate a pseudo-random real number </callout> <callout color="green" icon="fa fa-indent" title="Stack Diagram"> ---- ^ __Input Stack__ ^ ^ __Output Stack__ ^ | **** | **→** | **R<sub>pseudo-random</sub>** | | //Level 1 / Argument 1// | //→// | //Level 1// | {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} | **Keyword type** | [[manual:chapter5:basics#functions|Function]] || | **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-1commands-that-cannot-parallel-process|Group 1]] | //Commands that cannot parallel process// | | **Affected by flags** | //None// || </callout> <callout color="orangered" icon="fa fa-comment" title="Description"> ---- The ''RAND'' function returns a pseudo-random number. The sequence is generated by the [[http://prng.di.unimi.it/|xoroshiro128+ (v1.0)]] pseudo-random number generator. </callout> <callout type="success" icon="true" title="Compatibility"> ---- ''RAND'' 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_rand.txt Last modified: 2021/09/19 15:06by jojo1973