Move the create random method to randomUtil.java