<?php include( 'lib.probabilityRandom.php' ); $prExample = new probabilityRandom; $prExample->add( 'I have more chances than everybody :]', 30 ); $prExample->add( 'I have good chances', 10 ); $prExample->add( 'I\'m difficult to appear...', 1 ); for( $x=10; $x--; print $prExample->get() . '<br />' ); ?>