#41 Fix for random seed error during sampling

Explicitly specify a random seed in the range 0 to 2 ** 32 - 1, which
will always yield a valid random number using numpy’s sampler.
Merge remote-tracking branch 'upstream/0.4.x' into 0.4.x