This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Random Number generation

can I generate a random integer/float value between -1 to 1 or 0 to 1 in Keil Microvision 5. Initially, I used rand() function, but later I found that it is generating random values between 0 to 32767. Can I put some thresholds on the upper limit and lower limit?

0