Random or pseudo-random test pattern