Implementation of a source and a sink with a random amounts.