call caffe_set_rng at the end of each vRng function to maintain state
fix bernoulli*bernoulli test, now all pass