Creating a Random Number Generator

Hey guys quick question here,

How would I go about creating a random number generator (or pseduorandom I suppose) with user inputted lower and upper bounds along with a user inputted size of the sequence (so they can select how many random numbers they'd like outputted)?

Any help would be appreciated, thanks!
Are you talking about actually creating the generator or getting a select number of pseudo random numbers within a range?


If the later you could use one of the several pseudo random generators provided in the random library. http://www.cplusplus.com/reference/random/
I'd be actually creating one the random number generator. Hmm.
Well you are going to have to create a formula then here is something to get you started http://en.wikipedia.org/wiki/Random_number_generation
http://en.wikipedia.org/wiki/Linear_congruential_generator
Last edited on
Topic archived. No new replies allowed.