draw random sample from distribution

draw random sample from distribution