function generate_candidates(;n=1) return 100 .+ (15 .* randn(n, 1)) end
It's then stretched to have an SD of 15 via multiplication, and shifted to have a mean of 100.
This is Julia, but it's the same in Matlab and Numpy (np.random.randn); it'd be rnorm in R (which also lets you specify the mean and sd directly).
It's then stretched to have an SD of 15 via multiplication, and shifted to have a mean of 100.
This is Julia, but it's the same in Matlab and Numpy (np.random.randn); it'd be rnorm in R (which also lets you specify the mean and sd directly).