Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Make_random_state

Function: make_random_state (<n>)

Function: make_random_state (<s>)

Function: make_random_state (true)

Function: make_random_state (false) A random state object represents the state of the random number generator. The state comprises 627 32-bit words.

make_random_state (<n>) returns a new random state object created from an integer seed value equal to <n> modulo 2^32. <n> may be negative.

make_random_state (<s>) returns a copy of the random state <s>.

make_random_state (true) returns a new random state object, using the current computer clock time as the seed.

make_random_state (false) returns a copy of the current state of the random number generator.

(%o1)                                true
(%i2) 

Related Examples

make_random_state-makelist-set_random_state

s1: make_random_state...

set_random_state (s1);

n:random(30)+1;

Calculate

make_random_state-makelist

s1: make_random_state...

clc%makelist(random(5...

Calculate

make_random_state-set_random_state-true

s1:make_random_state ...

set_random_state (s1);

Ko:(random(10)+11)*100;

Calculate

make_random_state-set_random_state

s1: make_random_state...

set_random_state (s1);

random(5);

Calculate

make_random_state-set_random_state-solve

s1: make_random_state...

set_random_state (s1);

A:random(10) / random...

Calculate

make_random_state-set_random_state-solve

s1: make_random_state...

set_random_state (s1);

A:random(10);

Calculate

make_random_state-set_random_state

set_random_state (mak...

random (10^9);

random (10^9);

Calculate

make_random_state-set_random_state-true

set_random_state(make...

random(10);

Calculate

make_random_state-set_random_state-true

s1:make_random_state ...

set_random_state (s1);

Ko:(random(10)+11)*100;

Calculate

make_random_state-makelist-set_random_state

s1: make_random_state...

set_random_state (s1);

n:random(30)+1;

Calculate