bug fix for probability estimation
Initialize the random number generator