Minecraft wiki entry for Item_modifier, associated text: enchant_randomly—Enchants the item with one randomly-selected enchantment. The level of the enchantment, if applicable, is random.
 enchantments: List of enchantment IDs to choose from. If omitted, all enchantments applicable to the item are possible.