I work with a lot of random numbers to create constantly shifting textures. I'm getting tired of doing things like:
((rand() % 1000) / 10) + 100
when I really want something like
[randomUtils randomNumberBetween:100 and:200]
Additonally, I'd like to be able to manipulate weights of the randomization, so that, for example, my values would tend to fall closer to 100, and only rarely approach 200.
Does something like this exist already, or should I just write it myself?