📅  最后修改于: 2022-03-11 15:01:16.429000             🧑  作者: Mango
/*
To generate a random number between a and b keep in mind this formula:
a-> minimum value
b->maximum value */
let randomNumber = a+(b-a)*Math.random();
/*this gives you any random number between a and b
*/