Seed the random number generator

Now rand() actually generates [at least pseudo] random numbers.

Ref #1