Time irreversibility and randomness