<p>Making a small app, and I want a function to execute 50% of the time.  So if I were to dbl click the exe half the time the function would execute, and the other half it wouldn't.  I can't seem to find anyway to easily do this, the one solution I tried seemed to determine the chance on compile rather than on run.  Thanks in advance!</p>

Generate a random decimal number between 0 and 1. If it is greater than 0.5 run, if it is less than or equal to 0.5 do not run.