The WeightedRandomItemSampler class implements a random sampler where the probability of selecting an item is proportional to its weight, with replacement allowed between samples. In other words, an ...
With the Random Item Giver Datapack you can get a random item every x seconds. You can modify the timer and also which types of items you want to get! There's also a bunch of other customization ...