can you use bits for efficiency, if one is used flip a bit, keeping tracking of bits will be faster than integers, right? > I would like to write an algorithm that generates a random number from 1 - 108. The generator will give out a value randomly without repeating a value, until every single value has been selected and returned. Does anyone have an idea on how to do this? > I am thinking maybe start with an array, using a simple for loop to fill it with the values starting at 1 - 108. As for choosing randomly and then not repeating a choice I am not quite sure what to do.