random number generated pattern (3)