randomized the consumer and producer pairs