From the doc:
If called without the optional min, max arguments rand() returns a pseudo-random value between 0 and RAND_MAX. If you
want a random number between 5 and 15 (inclusive), for example, use rand (5, 15).
If this is not enough, you can add two or more random numbers,
rand(0,1000)*1000+rand(0,1000)