setRandomSeed

Syntax

setRandomSeed(seed)

Arguments

seed is an integer indicating the random seed.

Details

Set the random seed.

Examples

setRandomSeed(5);
rand(10, 10);
// output
[2,0,8,8,2,3,9,9,4,0]