Every time you call this function you create a new generator, which isn't very efficient. It seems to me like the signature is so similar to rand.nextInt(range) that it's not worth breaking this out as a separate method.