# NOT RUN {
## Use threefry engine
rxexp(0.5, n = 10) # with rxexp you have to explicitly state n
rxexp(5, n = 10, ncores = 2) # You can parallelize the simulation using openMP
rxexp(1)
## This example uses `rxexp` directly in the model
rx <- RxODE({
a <- rxexp(2)
})
et <- et(1, id = 1:2)
s <- rxSolve(rx, et)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab