## Use threefry engine
rxnbinom(10, 0.9, n = 10) # with rxbinom you have to explicitly state n
rxnbinom(3, 0.5, n = 10, ncores = 2) # You can parallelize the simulation using openMP
rxnbinom(4, 0.7)
# use mu parameter
rxnbinomMu(40, 40, n=10)
Run the code above in your browser using DataLab