startEventRandomly() {
    setInterval(() => {
      const maxNum = this.eventList.length;
      const eventID = Math.floor(Math.random() * maxNum);
      if (!this.eventList[eventID].active) this.startEvent(eventID);
    }, 20000);
  }
// starts a random event from the eventlist every xxx seconds (specify time in setInterval)
starts a random event from the eventlist every xxx seconds (specify time in setInterval)
starts a random event from the eventlist every xxx seconds ( specify time in setInterval )
startEventRandomly() {
    setInterval(() => {
      const maxNum = this.eventList.length;
      const eventID = Math.floor(Math.random() * maxNum);
      if (!this.eventList[eventID].active) this.startEvent(eventID);
    }, 20000);
  }
startEventRandomly ( ) { setInterval ( ( ) => { const maxNum = this . eventList . length ; const eventID = Math . floor ( Math . random ( ) * maxNum ) ; if ( ! this . eventList [ eventID ] . active ) this . startEvent ( eventID ) ; } , 20000 ) ; }
starts a random event from the eventlist every xxx seconds (specify time in setInterval)
starts a random event from the eventlist every xxx seconds ( specify time in setInterval )