n00b rand question

This is a discussion on n00b rand question within the C Programming forums, part of the General Programming Boards category; I'm a C programming class, and I have an assignment due tonight at midnight, but I can't get my rand() ...

n00b rand question

I'm a C programming class, and I have an assignment due tonight at midnight, but I can't get my rand() to work. I know its a little stupid thing, but it baffles me.

Here is are the parameters given to us by the professor:

I need a random number between 0 and 63.
Using a defined RANGE value (set at 64) and using the modulus (%) operator, ensure that the value is different every time the program is started and can include 0 and 63 as values.
Also, you must use the srand(time(null)) seed function.

all in all, I need something that doesn't require making a new .h file or using two void satements. and the random number has to be set to x.