In reply to dave_59:
Hi Dave,
I assume we could discard the val outside of the range from the caller.
if we really want to make all val within range, then just do the following:
function int normal(int mean);
do begin
normal = $dist_normal($urandom(), mean, std);
end while (!(normal inside {[low:high]}));
return normal;
endfunction