How do I write a program to generate a random number of n bits binary (say 40 bits) in C language?
Given a function to generate random numbers 0-5 (both inclusive) rand5(). Using this write a code to generate random numbers 0-8 (both inclusive.)?