manual:chapter6:statistics:cmd_rand

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:chapter6:statistics:cmd_rand [2019/10/22 00:37]
jojo1973 Fixed synopsis
manual:chapter6:statistics:cmd_rand [2021/09/19 15:06] (current)
jojo1973 Redone
Line 1: Line 1:
 ==== RAND ==== ==== RAND ====
----- 
 <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> <callout type="primary" color="" icon="fa fa-book" title="Synopsis">
 ---- ----
-Generate a random real number+Generate a pseudo-random real number
 </callout> </callout>
  
Line 9: Line 8:
 ---- ----
 ^  __Input Stack__  ^  ^  __Output Stack__  ^ ^  __Input Stack__  ^  ^  __Output Stack__  ^
-|  |  **→**  |  R<sub>pseudorandom</sub> + ****   **→**  |  **R<sub>pseudo-random</sub>**  | 
-|  //Level 1//  |  //→//  |  //Level 1//  | +|  //Level 1 / Argument 1//  |  //→//  |  //Level 1//  |
  
 {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
  
-|**Type**| [[manual:chapter5:basics#functions|Function]]  || +| **Keyword type**  | [[manual:chapter5:basics#functions|Function]]  || 
-|**Parallel list processing**| [[manual:chapter5:listproc#group-1commands-that-cannot-parallel-process|Group 1]]  ||  +| **Parallel list processing capabilities**  | [[manual:chapter5:listproc#group-1commands-that-cannot-parallel-process|Group 1]]  | //Commands that cannot parallel process//  
-|**Affected by flags**| None  ||+| **Affected by flags**  //None//  || 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 </callout> </callout>
  
 <callout color="orangered" icon="fa fa-comment" title="Description"> <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) PRNG]].+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>
  
 <callout type="success" icon="true" title="Compatibility"> <callout type="success" icon="true" title="Compatibility">
 ---- ----
-This command is fully compatible with userRPL.+''RAND'' is fully equivalent to its **userRPL** counterpart.
 </callout> </callout>
  
 <callout type="info" icon="true" title="Usage"> <callout type="info" icon="true" title="Usage">
 ---- ----
-The following program+**__Input__**
 <code> <code>
 « 32 SETPREC « 32 SETPREC
Line 38: Line 51:
 » »
 </code> </code>
-will result in+\\ 
 +**__Output__**
 <code> <code>
-1:                0.437333743646 +4:                                       
-…………………………………………………………………………………… +3:                                       
 +2:                                       
 +1:                        0.437333743646 
 +………………………………………………………………………………………………………… 
 +                                        
 </code> </code>
 </callout> </callout>
Line 50: Line 67:
 {{page>manual:chapter6:statistics&nofooter&noeditbtn&inline}} {{page>manual:chapter6:statistics&nofooter&noeditbtn&inline}}
 </callout> </callout>
 +
  • manual/chapter6/statistics/cmd_rand.1571729829.txt.gz
  • Last modified: 2019/10/22 00:37
  • by jojo1973