RPG tool (5)

1 Name: Moot : 2007-01-25 23:45 ID:GPvYZPmz

I'm looking for a really specific program, and how it resulted so difficult to find, I intend on asking for help to you guys.

I want a program that's capable of telling me if I compleated a certain percentage. I mean, for example, that in thins program, I'm able to write a random percentage, the program then has that percentage of telling me yes.

I hope i've been clear :s

2 Name: #!/usr/bin/anonymous : 2007-01-26 03:58 ID:lil7fVyg

if (random number between 0 and 1) < percentage/100
print "yes"

3 Post deleted by moderator.

4 Post deleted by moderator.

5 Name: #!/usr/bin/anonymous : 2007-05-17 04:35 ID:Heaven

#!/usr/bin/perl -l
use Quantum::Superpositions;
my $percentage=shift;
print "yes" unless any(any(0..100)..$percentage);
This thread has been closed. You cannot post in this thread any longer.