Example #1
0
 __device__
 void generate_uniform(T *val, curandState_t *state)
 {
     *val =  (T)curand(state);
 }
Example #2
0
 DINLINE Type operator()(RNGState* state) const
 {
     /*curand create a random 32Bit int value*/
     return curand(state);
 }
Example #3
0
 DINLINE uint32_t
 get32Bits(StateType& state) const
 {
     return curand(&state);
 }