Login   Register  
PHP Classes
elePHPant
Icontem

works as expected.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Advanced Randomizer  >  All threads  >  works as expected.  >  (Un) Subscribe thread alerts  
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

  1. works as expected.   Reply   Report abuse  
Picture of Rick McElderry
Rick McElderry
2010-01-23 13:38:46
works as expected.

  2. Re: works as expected.   Reply   Report abuse  
Picture of lily
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.