created a system for testing events with random outcomes (#183)