Added stdlib.h to random.c

While gcc does not mind leaving it out, other compilers, like clang, do.