I'd prefer it you created a static method for that (and tested it), like `randomDigit` and `randomDigitNotNull`