Modification of text book 'Zuul' program, to implement random elements