Does the ECMAscript specification impose a specific pseudo-random generating algorithm?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
No, it doesn't impose a specific algorithm, it depends on the implementation.
This is an interesting read on the topic: http://baagoe.org/en/w/index.php/Better_random_numbers_for_javascript