Fix off-by-one error when reading random ints in GenEvent line