title: How to get a random enum in TypeScript?
body: <p>How to get a random item from an enumeration?</p>
  
  <pre><code>enum Colors {
    Red, Green, Blue
  }
  
  function getRandomColor(): Color {
    // return a random Color (Red, Green, Blue) here
  }
  </code></pre>