I am trying to draw 1000 random values from a normal distribution with a specific mean and standard deviation. Additionally, the values cannot be negative, which is an added constraint. To do this I have been trying to use the Distributions package but am running into errors.
Here my my attempt
using Random, Distributions
Random.seed!(123) # Setting the seed
d = Normal(μ=0.16, σ=0.05)
n=rand(d,1000)
but this runs into a method error before I can use this distribution to draw data. How would I sample from a specific normal distribution? The default examples on the Distributions documentation unfortunately did not include this (that I could find).
Thanks so much! Exactly what I was looking for. Are those lower bounds exclusive or inclusive? i.e. is it theoreticallly still possible for rand to draw 0.0 ?