What is the process to generate random numbers in C programming language?
The command rand() is available to use for this purpose. The function returns an integer number beginning from zero(0). The following sample code demonstrates the use of rand().
Code –
<!--[if gte vml 1]> <![endif]--><!--[if !vml]--><!--[endif]-->
Output –