add( (bool)mt_rand( 0, 1 ) ); } $out->outputLine(); // Print statistics $out->outputLine( $status->getSuccessCount() . ' operations succeeded, ' . $status->getFailureCount() . ' failed.' ); /* OUTPUT: +-++++-++++-++-+--+- 13 operations succeeded, 7 failed. */ ?>