Us an instanced rand, instead of the global rand.