Does anyone know how to make a random item gen

Here is a randomizer guide, please mark this as the solution.