I was wondering if it is possible to generate a random number between two limits in c. That is, my program is installed as follows:
function x { generate random number; } while(1) { function x; delay }
so I want a random number to be generated every time the function is called, but the number should be between, for example, 100 and 800
I know that the function already done is called random and randmize in stdlib.h I just donβt know how to create upper and lower limits.
thanks
source share