assignment3-state-machines-randomness