示例#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);}