title: C++ define function syntax with rand
body: <p>I am working on a class assignment with starter code and included is this syntax that I've never seen before. </p>
  
  <p><code>#define EVENT() (rand() % 2 &gt; 0.5)</code></p>
  
  <p>Can someone tell me what this does? Does it return something? I know the define is a macro that has a function called EVENT(), but what does the <code>(rand() % 2 &gt; 0.5)</code> bit mean? If I use EVENT() in the code somewhere, do I treat it as a void function that just evaluates to that statement?</p>