Javascript Math.random()

后端 未结 4 2041
时光说笑
时光说笑 2020-12-07 03:26

Math.random() in javascript is able to return 1, right? Which means if I would be to use it to get a random index on my array the following code could fail:

4条回答
提交回复
热议问题