Minor preformance improvement - Reuse random number generator