Added rnd_closed() and fixed the definition of rnd_number_max().
Fixed rnd_dist_normal().
General improvements to rnd_test.