0
var randomNumber = Math.random();

What is the initial seed used in this function?

Edited -- I don't know why this question was marked duplicate with the question which asked the working of this method.

I just want to know the exact initial seed used to implement this. I just used this method to get a random number. My program was running on latest version of the Google Chrome browser. So can someone please help me? I am just a beginner, Advanced stuff scare me. Thanks in advance.

  • 3
    The details of `Math.random()` are left up to each implementation. – Pointy Aug 18 '20 at 17:01
  • Which implementation is used in The latest version of Google Chrome? I don't wanna see the implementation though. Just curious about the particular seed used. – Atik Shaikh Aug 25 '20 at 06:48
  • See: [Seeding the random number generator in Javascript](https://stackoverflow.com/questions/521295/seeding-the-random-number-generator-in-javascript), [Seedable JavaScript random number generator](https://stackoverflow.com/questions/424292/seedable-javascript-random-number-generator) – user2314737 Aug 25 '20 at 06:56

0 Answers0