How to create a function, which on every call generates a random integer number? This number must be most random as possible (according to uniform distribution). It is only
Boost has a very nice random number library, and the source code is available, so you could try looking there and using what you need (i.e. cut and paste).