Is there a way to quickly generate a fresh random number every second using the Math.random()
method? I attempted placing it within a function and returning Math.random
, but it keeps generating the same number. Are there any concise approaches to accomplishing this task efficiently?
-thanks