Then have a "base" spell that does nothing (except run a common event), and inside that common event do this 5 times: pick a random number 1 through X (X is the number of possible elemental spells it can choose), using the Control Variables event command. For each number, have a conditional branch that says if the variable is this number, Force Action on a certain spell for that battler. (You can either copy and paste all this long eventing 5 times, or you can use a Loop by incrementing another variable every time you run through, and then breaking the loop once that variable is >5 and finally setting it back to 0 outside the loop.)
If you refuse to have repeats, it gets more complicated. You have to set aside 4 more variables to hold the random number X you chose the 1st through 4th times, and then after you pick a random number (but before you use Force Action), you have to check whether your number matches any of those four holder variables. If not, you don't run the action, but instead you pick another number, and you keep doing it until you've picked one that doesn't match. You can do this by adding a loop to the pick-a-number, match-numbers selection process. Break the loop only once you've found that your number matches none of the holders, and move on to the actual Force Action. Like I said, it's complex. Checking for "unique" values is always a bit of a slog, even in programming.
You mentioned you want random targets. In that case, just choose "Random" in force action rather than "Last Target".
@mathmaster74 Very glad I could help you out!
🙂