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