- Joined
- Sep 22, 2003
- Messages
- 16,279
I am trying to write a method that I can pass in two values (low number, high number) and will return a non-repeating random number within this range, one number at a time (possibly button click, not sure yet - I'll tackle that later). Once all available numbers are used, I want it to return a -1. I cannot move on until I get this tested functionally. I am trying to make use of a binary array to keep track of used numbers by index. Here is what I have so far:
Any ideas?
Any ideas?
Attachments
-
30.7 KB Views: 1,093