> - the random function in C has no arguments, it will produce > a different result on every call (within the limits of the > random number generator that is used). Of course from a > mathematical point of view this is a monstrosity ;). > Functions should return the same values given the same > arguments.
rand() should generate the same the same sequence of results given the same initial seed value. The srand() function sets the seed