Try this instead...
Code:
switch ( Utility.Random( 3 ) )
{
case 0: from.AddToBackpack(new Pinatagold() ); break;
case 1: from.AddToBackpack(new Pinata() ); break;
case 2: from.AddToBackpack(new Pinatatoken() ); break;
}
Now on a different note why are you posting help for this here? This has nothing to do with SP!DERS new random double functions. This should have gone in Script Support instead of here. Im sure that SP!DER is being nice about it but alot of others would be rather upset at the hijack of the thread for something that doesnt have anything to do with the authors post.