random bool c#

C#
var rand = new Random();
rand.NextDouble() >= 0.5;
Source

Also in C#: