manual:chapter6:statistics:cmd_rdz

Synopsis


Initialize pseudo-random number generator with a seed

Stack Diagram


Input Stack Output Stack
Numseed
Level 1 Level 1

Legend

Keyword type Command
Parallel list processing capabilities Group 4 Commands that set modes / states
Affected by flags None

Description


The RDZ command initializes the 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.

Compatibility


RDZ is fully equivalent to its userRPL counterpart.

Usage


Input

« 32 SETPREC
  -1 RDZ
  RAND
»


Output

4:                                      
3:                                      
2:                                      
1:                        0.437333743646
…………………………………………………………………………………………………………
                                        

Related Commands


Statistics 2

Command Short Description
RDZ Initialize random number generator with a seed
RAND Generate a random real number
  • manual/chapter6/statistics/cmd_rdz.txt
  • Last modified: 2021/09/22 11:46
  • by jojo1973