random number length bug