Implemented RandomPattern