code: public static int curandGenerateNormalDouble(curandGenerator generator, Pointer outputPtr, long n, double mean, double stddev)
      {
          return checkResult(curandGenerateNormalDoubleNative(generator, outputPtr, n, mean, stddev));
      }
docs: <pre>
  Generate normally distributed doubles.
  
  Use generator to generate num double results into the device memory at
  outputPtr.  The device memory must have been previously allocated and be
  large enough to hold all the results.  Launches are done with the stream
  set using ::curandSetStream(), or the null stream if no stream has been set.
  
  Results are 64-bit floating point values with mean mean and standard
  deviation stddev.
  
  Normally distributed results are generated from pseudorandom generators
  with a Box-Muller transform, and so require num to be even.
  Quasirandom generators use an inverse cumulative distribution
  function to preserve dimensionality.
  
  There may be slight numerical differences between results generated
  on the GPU with generators created with ::curandCreateGenerator()
  and results calculated on the CPU with generators created with
  ::curandCreateGeneratorHost().  These differences arise because of
  differences in results for transcendental functions.  In addition,
  future versions of CURAND may use newer versions of the CUDA math
  library, so different versions of CURAND may give slightly different
  numerical values.
  
  @param generator - Generator to use
  @param outputPtr - Pointer to device memory to store CUDA-generated results, or
  Pointer to host memory to store CPU-generated results
  @param n - Number of doubles to generate
  @param mean - Mean of normal distribution
  @param stddev - Standard deviation of normal distribution
  
  @return
  
  CURAND_STATUS_NOT_INITIALIZED if the generator was never created
  CURAND_STATUS_PREEXISTING_FAILURE if there was an existing error from
  a previous kernel launch
  CURAND_STATUS_LAUNCH_FAILURE if the kernel launch failed for any reason
  CURAND_STATUS_LENGTH_NOT_MULTIPLE if the number of output samples is
  not a multiple of the quasirandom dimension, or is not a multiple
  of two for pseudorandom generators
  CURAND_STATUS_DOUBLE_PRECISION_REQUIRED if the GPU does not support double precision
  CURAND_STATUS_SUCCESS if the results were generated successfully
  </pre>