Prevent some code redundancy and use more accurate random number generator