A
ANM
Can someone recommend some code that I can reuse to generate random
numbers between an upper and lower bound in a range. Essentially, I
am looking for a function that will take in two integers as parameters
and then compute and return a random number that lies between that
range. Any help would be greatly appreciated. I am aware of the
Math.random method but, want to know if there is something better for
what I am trying to accomplish here for a school project.
numbers between an upper and lower bound in a range. Essentially, I
am looking for a function that will take in two integers as parameters
and then compute and return a random number that lies between that
range. Any help would be greatly appreciated. I am aware of the
Math.random method but, want to know if there is something better for
what I am trying to accomplish here for a school project.