manual:chapter6:statistics:cmd_rdz

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_rdz [2019/10/20 14:48]
jojo1973
manual:chapter6:statistics:cmd_rdz [2021/09/22 11:46] (current)
jojo1973
Line 1: Line 1:
 ==== RDZ ==== ==== RDZ ====
----- 
 <callout type="primary" color="" icon="fa fa-book" title="Synopsis"> <callout type="primary" color="" icon="fa fa-book" title="Synopsis">
 ---- ----
-Initialize random number generator with a seed+Initialize pseudo-random number generator with a seed
 </callout> </callout>
  
Line 9: Line 8:
 ---- ----
 ^  __Input Stack__  ^  ^  __Output Stack__  ^ ^  __Input Stack__  ^  ^  __Output Stack__  ^
-|  **R<sub>seed</sub>**  |  **→**  |  | +|  **Num<sub>seed</sub>**  |  **→**  ****  | 
-|  //Level 1//  |  //→//  |  //Level 1//  | +|  //Level 1//  |  //→//  |  //Level 1//  |
  
 {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}} {{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
  
-|**Type**| [[manual:chapter5:basics#operators|Command]]  || +| **Keyword type**  | [[manual:chapter5:basics#commands|Command]]  || 
-|**Parallel list processing**| [[manual:chapter5:listproc#group-4commands-that-set-modes-states|Group 4]]  ||  +| **Parallel list processing capabilities**  | [[manual:chapter5:listproc#group-4commands-that-set-modes-states|Group 4]]  | //Commands that set modes / states//  
-|**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 ''RDZ'' command initializes the pseudo-random number generator with a seed.+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. The same seed will generate always the same pseudo-random sequence, provided internal precision is the same.
Line 28: Line 41:
 <callout type="success" icon="true" title="Compatibility"> <callout type="success" icon="true" title="Compatibility">
 ---- ----
-This command is fully compatible with userRPL.+''RDZ'' 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 40: Line 53:
 » »
 </code> </code>
-will result in+\\ 
 +**__Output__**
 <code> <code>
-1:                0.437333743646 +4:                                       
-…………………………………………………………………………………… +3:                                       
 +2:                                       
 +1:                        0.437333743646 
 +………………………………………………………………………………………………………… 
 +                                        
 </code> </code>
 </callout> </callout>
Line 52: Line 69:
 {{page>manual:chapter6:statistics&nofooter&noeditbtn&inline}} {{page>manual:chapter6:statistics&nofooter&noeditbtn&inline}}
 </callout> </callout>
 +
  • manual/chapter6/statistics/cmd_rdz.1571608131.txt.gz
  • Last modified: 2019/10/20 14:48
  • by jojo1973