probability in javascript help?

后端 未结 6 1857
-上瘾入骨i
-上瘾入骨i 2020-12-28 10:06

Sorry, I\'m new to JS and can\'t seem to figure this out: how would I do probability?

I have absolutely no idea, but I\'d like to do something: out of 100% chance, m

6条回答
  •  情歌与酒
    2020-12-28 10:44

    Look up how to get random numbers in JavaScript, and then depending on where that number falls, call each function.

提交回复
热议问题