We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi fellow programming gurus.
I've come up against a very hard problem and i want some advise.
My problem is that i need to generate a series of random numbers. I know that they are not really random (the term is deterministic) but i have created a really clever idea to improve the starting point of the sequence. I will seed the generator with a random number.
like this
<pree>
srand ( rand () ) ;
but it is not working properly. Can you help me fix it?
Gosh I really needed that. Thank you!
pubs.opengroup.org/.../srand.html
If rand() is called before any calls to srand() are made, the same sequence shall be generated as when srand() is first called with a seed value of 1.
Some newer MCUs are equipped with True Random Number Generator, like Freescale Kinetis MCUs. Are the True Random Number Generator useful?