Zero is the minimum, N is a maximum, N is given, and a algorithm
CodePudding user response:
Math. Round ((Max - min) * Math in the random () + min)
CodePudding user response:
Function the random (n) {return math.h round (Math) random () * n)}
CodePudding user response:
habits, prefer to use Math. The floor
CodePudding user response: