Last year I wrote about my clumsy implementation of unique random integers system, I’ve used in my Memorable Ladies games. In those the speed isn’t a critical factor. It’s sufficient that the idea works. 🙂 In this post the idea behind unique random integers is the same, but implemented in a faster way. In the implementation IContinue reading “Unique Random Integers part II”
Tag Archives: random numbers
Unique Random Integers
For example in my Memorable Ladies games it is the case that I needed a method that gives a random integer for example between 0…31 so that any integer that has once been drawn, doesn’t get drawn anymore. One way to handle this (how I didn’t do it) could be for example to use Rand-functionContinue reading “Unique Random Integers”