Implement user-generated random pattern generation