randomweapon()
{
pickrandom number from 1 - 10
if(get random number = 1)
{
level thread specialweapon1();
}
if(get random number = 2)
{
level thread specialweapon2();
}
all the way to 10
}
randomweapon()
{
pickrandom number from 1 - 10
if(get random number = 1)
{
level thread specialweapon1();
}
if(get random number = 2)
{
level thread specialweapon2();
}
all the way to 10
}

[B]RandomNumber = RandomIntRange(1,10);[/B]
test()
{
num = randomintrange(1,10); //remember it will only generate 1 through max - 1, so 1 - 9 in this case. it doesnt include the max number
switch(num)
{
case 1:
//code here
break;
case 2:
//code here
break;
}
}
//you have to add break before each new case or you will get an error
test()
{
num = randomintrange(1,10); //remember it will only generate 1 through max - 1, so 1 - 9 in this case. it doesnt include the max number
switch(num)
{
case 1:
//code here
break;
case 2:
//code here
break;
}
}
//you have to add break before each new case or you will get an error
Copyright © 2026, NextGenUpdate.
All Rights Reserved.