manual:chapter6:statistics:cmd_rdz

This is an old revision of the document!



Synopsis


Initialize random number generator with a seed

Stack Diagram


Input Stack Output Stack
Numseed
Level 1 Level 1

Legend

Type Command
Parallel list processing Group 4
Affected by flags None

Description


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


This command is fully compatible with userRPL.

Usage


The following program

« 32 SETPREC
  -1 RDZ
  RAND
»

will result in

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.1571607155.txt.gz
  • Last modified: 2019/10/20 14:32
  • by jojo1973