## Create a sample of size 10000 for a
## binomial distribution with size=115, prob=0.5
x <- urdgt(n=10000, probvector=dbinom(0:115,115,0.5))
## same but with method DAU
x <- urdau(n=10000, probvector=dbinom(0:115,115,0.5))
## Creata a sample of size 10000 standard normal variates rounded to two
## decimal places
x <- urdgt(n=10000, probvector=dnorm(seq(-5,5,0.01)), from=-5, by=0.01)Run the code above in your browser using DataLab