Random Drops

OK, So i how would i go about making a random number drop for a palm tree? I want it so when i chop down the palm tree (a script i already have), it drops maybe 0-2 coconuts. But right now the script makes it always drops one, any suggestions?

You could use int num = Random.Range(0, 3);

It would make num 0, 1 or 2.

You should google it.

Random Drops.

Randomness.

Random Loot - Rarity.