Subject: | works as expected. |
Summary: | Package rating comment |
Messages: | 2 |
Author: | Rick McElderry |
Date: | 2010-01-23 13:38:46 |
Update: | 2012-02-08 05:33:32 |
|
|
|
Rick McElderry rated this package as follows:
Utility: | Sufficient |
Consistency: | Sufficient |
Documentation: | Good |
Examples: | Good |
Unit tests: | Sufficient |
|
Rick McElderry - 2010-01-23 13:38:46
works as expected.
lily - 2012-02-08 05:33:32 - In reply to message 1 from Rick McElderry
hello, how to make the result no repeat?
$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', 1 );
$prExample->add( 'I\'m difficult to appear...15', 15 );
$prExample->add( 'I\'m difficult to appear...16', 16 );
$prExample->add( 'I\'m difficult to appear...17', 17 );
for( $x=2; $x--; print $prExample->get() . '<br />' );
I want the 2 outputs never repeat. Can it be done?
Thanks.
|