DEV Community

Discussion on: [Question] What is random seed?

Collapse
 
fennecdjay profile image
Jérémie Astor

I'll just give my two cents:
Random number generators in computer science are like a one sided dice, the seed setting the start face.
It is useful because you can replay the random sequence.
I don't know javascript so I can't tell the difference with Math.random, yet I suppose there has to be a seed somewhere.

Collapse
 
supunkavinda profile image
Supun Kavinda

Thank you.

What do you mean by one-sided dice? Only one side? One number? I didn't get it.

Collapse
 
fennecdjay profile image
Jérémie Astor

I felt the wording was wrong ;-)
Another try: it plays a sequence that looks random, but is actually, well, a sequence. Like a dice that does not fall on its sides 'cause it has no sides.

Thread Thread
 
supunkavinda profile image
Supun Kavinda

Owh, got it. Thank you. Awesome two cents. :)