Random number generator.

Soldato
Joined
17 Jan 2006
Posts
2,890
Location
Dundee
I posted this initially in the Windows sfotware section but might hve better joy here

Does anyone know of a random generator that I can use that will be able to remember each number generated and not generate it again.

http://forums.overclockers.co.uk/showthread.php?t=18357826

What I need it to do is to generate a number between 1 and ,say, 128 and report that number and then select a new number but the generator knows not to pick the first number reported and so on until all numbers are used.

It is to be used for a random draw for a large pool tournament that I'm controlling.

Cheers.
 
Last edited:
I'm trying to find something that runs offline that I can give it two sets of numbers and then it will select a random number between the to set and when asked will give another without repeating previous numbers.

Yes a PRBS is what you need. Just google it.

Easy to implement in C, with >> shift operator and &.
 
Back
Top Bottom