Random() returns a random number between 0 and (num-1).random(num) is a macro defined in stdlib.h
Randomize() initializes the random number generator with a random value.Because randomize is implemented as a macro that calls the time function protyped in time.h,you should include time.h when you use this routine. Source: CoolInterview.com