You are not logged in.
Pages: 1
Here's one of the more ridiculous scripts I've seen lately:
//chooses a number between argument0 and argument1
choice1=argument0
choice2=argument1n=random(argument1)
ch=choose(floor(n))
if(argument0<argument1)
{
if(ch<argument0)
{
return random(argument1)
}
}
if(argument0>argument1)
{
if(ch<argument1)
{
return random(argument0)
}
}
Bonus:
EDIT: The script has been fixed
Abusing forum power since 1986.
Offline
Wow. This script could certainly use a cleanup.
Offline
Wow... you are right... though, i tested the script and it worked fine until you told me that it didnt work, and i tested it again, and it didnt work...
Offline
It's like a quantum script. The outcome changed when he measured it.
Offline
What the... hell. A silly-straw distribution?
If argument0 is less than argument1, there's an argument0/argument1 chance that it'll return a random number between 0 and argument1.
If argument0 is greater than argument1, then it'll return a random number between 0 and argument0.
It's like a quantum script. The outcome changed when he measured it.
Ha.
Offline
Pages: 1