changed random generation to use our random class