|
| |||||||||||||||||||||||||||||||||||||
| vipul mehta (12) | |
| How can i generate random numbers(from 1 to n) without using any inbuilt functions like rand(). | |
|
|
|
| jsmith (5804) | |
| Write your own RNG. | |
|
|
|
| anders43 (123) | |
| do a search for c-snippets, they include a relatively good random number generator in C | |
|
|
|
| Zaita (2292) | |
|
Boost has a few. http://www.boost.org/doc/libs/1_35_0/libs/random/index.html | |
|
|
|