https://www.itoosoft.com/tutorials/randomising-pipes