I need to create a specific number of random numbers within a number range.
For example, I need 15 random numbers out of the number range of 1 through 100. These 15 numbers can not be duplicates.
Since the number range will always start with one, I wouldn't need to pass that number.
So I am looking for a function like this:
getrandomnumbers(intAmount, intRange)
then have the random numbers put in a variable array
Anyone have some code that I could adapt to my project easily? I know, I don't ask for much huh? lol


Reply With Quote
