最近在看thrust,看到一个随机赋值的语句
thrust::generate(h_vec.begin(), h_vec.end(), rand);
请问在这里面rand出来的数 可以控制么,比如从0-10什么的?
求解答~~:dizzy: