← Back to all TILs

Random Cannot Be Seeded

javascript Written February 02, 2016

In JavaScript, you can use Math.random() to get a sorta random value.

> Math.random()
0.5130641541909426

Most programming languages give you a method of seeding the random number generator for determinism. Unfortunately, JavaScript provides no way for choosing or resetting the seed to Math.random().

source

Other posts like this