Microcontroller › 8051 › random numbers generation. › Hye bertilla,Here is no mater
February 1, 2016 at 12:37 pm
#13683
Vara Ashishkumar
Participant
Hye bertilla,
Here is no mater of type of controller. You can generate random number using rand ( ) function by calling stdlib.h header file.
rand ( ) is generate series of intiger number from 0 to maximum number as you defined. You need to initialize value by srand ( ) function for generate distinct value of random number.