def generate_flare_events_array(timeArraySize, flareProp): randomNumbers = np.random.rand(timeArraySize) flareEventsArray = randomNumbers < flareProp return flareEventsArray