NONMEM Users Network Archive

Hosted by Cognigen

[NMusers] Re: Random number generation

From: Tingjie Guo <>
Date: Mon, 3 Jun 2019 16:58:56 +0000

Hi Sebastien,

As far as I know, you could write verbatim code to generate random numbers =
during estimation. E.g:

RAN = any value ; initialization
"RAN = RAND(0) ; start verbatim code

A random number between 0 and 1 from uniform distribution will be assigned =
to RAN. This function is called for each record of your input data. I belie=
ve it's also possible to call it more/fewer times through checking ICALL.

Warm regards,

From: <> on behalf=
 of Sebastien Bihorel <>
Sent: Thursday, May 30, 2019 12:34
Subject: [NMusers] Random number generation


Is it possible for NONMEM to generate a random number during an estimation =

Thank you

Sebastien Bihorel

Received on Mon Jun 03 2019 - 12:58:56 EDT

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to: Once subscribed, you may contribute to the discussion by emailing: