Test generate & generate_n with thrust::seq in __device__ code.