Shortened the randomInt example