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:
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,

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