50% percent randomness

Needed a quick random bit in Perl.

my $rand = int(rand() * 2);
Leave A Reply
All content licensed under the Creative Commons License