Thema: Coin Flip

Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.671 Beiträge
 
#1

Coin Flip

  Alt 4. Jun 2010, 18:33
I had occasion to write a little routine called CoinFlip: function CoinFlip: Boolean; begin Result := Random > 0.5; end; I don’t know why I found it mildly amusing.  And I bet someone will tell me that it is slightly biased in one direction.  Because it is.  Anyway, ...

More...
  Mit Zitat antworten Zitat