change random table generation to use util