==== RAND ====
----
Generate a pseudo-random real number
----
^ __Input Stack__ ^ ^ __Output Stack__ ^
| **** | **→** | **Rpseudo-random** |
| //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// ||
----
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.
----
''RAND'' is fully equivalent to its **userRPL** counterpart.
----
**__Input__**
« 32 SETPREC
-1 RDZ
RAND
»
\\
**__Output__**
4:
3:
2:
1: 0.437333743646
…………………………………………………………………………………………………………
----
{{page>manual:chapter6:statistics&nofooter&noeditbtn&inline}}