Looking to make a really simple random number generator method in C. The numbers should be between 0 and 24 and can be for example 14.5f.
Any help would be great, thanks
You can use C's built in random number generator to get an integer between 0 and 30 thousand something like this:
`srand(time(NULL)); int x= rand();`
You would just need to do some division to get a decimal number instead of and integer.