예제 #1
0
 KOKKOS_INLINE_FUNCTION
 static int draw(Generator& gen, const int& range)
                       {return gen.rand(range);}
예제 #2
0
 KOKKOS_INLINE_FUNCTION
 static int draw(Generator& gen, const int& start, const int& end)
                       {return gen.rand(start,end);}
예제 #3
0
 KOKKOS_INLINE_FUNCTION
 static int draw(Generator& gen)
                       {return gen.rand();}
예제 #4
0
 KOKKOS_INLINE_FUNCTION
 static short draw(Generator& gen, const short& start, const short& end)
                       {return short(gen.rand(start,end));}
예제 #5
0
 KOKKOS_INLINE_FUNCTION
 static short draw(Generator& gen, const short& range)
                       {return short(gen.rand(range));}
예제 #6
0
 KOKKOS_INLINE_FUNCTION
 static short draw(Generator& gen)
                       {return short((gen.rand()&0xffff+65536)%32768);}
예제 #7
0
 KOKKOS_INLINE_FUNCTION
 static short draw(Generator& gen)
                       {return short((gen.rand()&0xff+256)%256);}