Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

javascript - 在Javascript中植入随机数生成器(Seeding the random number generator in Javascript)

是否可以在Javascript中植入随机数生成器(Math.random)?

  ask by weepy translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

No, it is not, but it's fairly easy to write your own generator, or better yet use an existing one.(不,不是,但是编写自己的生成器相当容易,或者最好使用现有的生成器。)

Check out: this related question .(签出: 此相关问题 。)

Also, see David Bau's blog for more information on seeding .(另外,请参阅David Bau的博客, 以获取有关播种的更多信息 。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...