then

int((max plast toys+1)rand->V

else

int((customers+1)rand->V

end ]]>

If anyone knows some code I could use, any help would be appreciated.

Thanks!

This is the part of code:

`D+1->D "A is the total amount of customers you can have randInt(1,A)->A Lbl D1 randInt(0,P)->V If P>A Then Goto D1 Else A-V->A P-V->P M+(15*V)->M End Lbl D2 randInt(0,L)->W If W>A Then Goto D2 Else A-W->A L-W->L M+(45*W)->M End Lbl D3 randInt(0,T)->X If X>A Then Goto D3 Else A-X->A T-X->T M+(103*X)->M End Lbl D4 randInt(0,I)->Y If Y>A Then Goto D4 Else A-Y->A I-Y->I M+(245*Y)->M End Lbl D5 randInt(0,S)->Z If Z>A Then Goto D5 Else A-Z->A S-Z->S M+(600*Z)->M End Text(~1,1,1,"DAY: ",D Text(11,1,"Total Customers: ",A Text(18,1,"Plast Toys Sold: ",V Text(25,1,"Lego Sets Sold: ",W Text(32,1,"Metal Toys Sold: ",X Text(39,1,"Bicycles Sold: ",Y Text(46,1,"Swings Sold: ",Z`