Adds randomize(seed) for repeatable pseudo random numbers.

Also fixes srand48() type to clong.