is it possible to create a random number generator for a given range without repeating number and without using pseudo random number generator method??

There are many generators:

http://www.cplusplus.com/reference/random/

"Given range" is usually a property of distribution rather than the generator:

http://www.cplusplus.com/reference/random/uniform_int_distribution/

Your "without repeating number", however, is not about "getting a random number".

You want to**shuffle** known values into random *order*:

http://www.cplusplus.com/reference/algorithm/shuffle/

http://www.cplusplus.com/reference/random/

"Given range" is usually a property of distribution rather than the generator:

http://www.cplusplus.com/reference/random/uniform_int_distribution/

Your "without repeating number", however, is not about "getting a random number".

You want to

http://www.cplusplus.com/reference/algorithm/shuffle/

Yes it's possible:

- Pick a random number from that range

- Remove that number from the range

- Repeat until the range it exhausted

Your question now should be, how do I pick a random number from a range and** keskiverto**'s answer should be useful for this. Specifically **shuffle** www.cplusplus.com/reference/algorithm/shuffle/

- Pick a random number from that range

- Remove that number from the range

- Repeat until the range it exhausted

Your question now should be, how do I pick a random number from a range and

Topic archived. No new replies allowed.