10 years, 5 months ago.

Rand() doesnt produce a randomnumber

in Mbed RTOS the rand() function doesnt produce a random number. Even with srand() you will get all the time a fixed number.

As this rand() most likely is taken from some counter, i assume there isnt a counter left for this purpose?

How do you use srand()? Could you post your code?

posted by David Golz 05 Oct 2013

1 Answer

10 years, 4 months ago.

strangly it works now after recompiling again putted some code to monitor it