How do you give yourself a random effect in Minecraft?
By building a randomizer.
You can put different items in a dropper, which have different weights.
In this you can show a hopper.
You put a comparator on the hopper with a redstone track on it.
Then you set command blocks wherever the signal of each item ends. Each command block gives a different effect