void setup() { int num_heads = 0; int num_tails = 0; for( int idx = 0; idx < 100000; ++idx ) { float r = random( 10 ); if( random(1) < 0.75 ) { ++num_heads; } else { ++num_tails; } } println( "I saw " + num_heads + " heads and " + num_tails + " tails." ); }