Device Random Number Generation

I’ve been searching but all I can find are some older posts about random number generation with curand. I’d like to generate random numbers from within a Fortran OpenACC Parallel region. I have been working off of this example code:
https://www.olcf.ornl.gov/tutorials/openacc-interoperability-ii/
but the random numbers are generated outside the parallel region.

Is it possible to generate random numbers inside an OpenACC parallel region?

I’m using:
pgf90 v16.10
nvcc v8.0.44
Scientific Linux 6.9

Thanks in advance for your help!

Take Care,
Greg

If you have access to a recent PGI installation, look in

$PGI/linux86-64/201{6|7}/examples/CUDA-Libraries/cuRAND