03.10.2015, 12:55
PHP код:
new bagtype = random(5) ? BAG_FOOD : BAG_CASH;//according to this code 1/5 chances of getting bag_cash
new cash = random(10) ? randomEx( 100, 200 ) : randomEx( 500, 600 );
//up here cash has 1/10(10 percent) chance of getting cash between 500-600 and 90% chance of cash between 100-200