Randomly switching max-plus linear systems and equivalent classes of discrete event systems