One random number generator per GPU.

Instead of having a single generator shared between GPUs, create a seperate
generator for each GPU. A generator is only initialized when the corresponding
GPU is being used.
Merge pull request #53 from dominikgrewe/random_generator_per_gpu

One random number generator per GPU.