update RandDistrib to allow public access to distrubtion and add testcase