With over 300 spells, I think you'd need to have a pretty heavy thumb on the scales to get to playability for random selection.
Probably some mechanism to limit the population of potential results to some reasonable number, maybe 4 or 5.
Ultimately, my real issue would be from the narrative...