random without cuda kernel