How to make a Scope Random X# Enemy Skill attack only once with one enemy?

By default, a skill with a Scope to randomly attack multiple enemies will repeat that number of attacks when only one enemy is present. Is there a method or a plugin to make it so 1 enemy is only attacked 1 time?
Welcome!

The common way is to program the skill using Yanfly's Action Sequences.

There have been a number of threads about this you should be able to find code/commands in. I'm not sure if there's a free-standing plugin that changes this functionality by itself.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-scope-random-x-enemy-skill-attack-only-once-with-one-enemy.169758/