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