How to? Random action order at start of battle only

I don't use the "speed" option for skills. When you use this, you can make more powerful skills take longer to cast, effectively moving that actor back in the action order.

I want to randomize the starting action order. An actor's agility will play a role in how likely they are to be first, but it changes every battle.

Currently, I can have the action order randomized at the beginning. The problem, is that the action order is then randomized again every subsequent turn.

e.g. turn 1 order: A, C, E, D; turn 2 order: C, E, A, D

I would rather it be like this: turn 1 order: A, C, E, D (random); turn 2 order: A, C, E, D (same as turn 1)

I use this: x= 0; turn=0 ? x=Math.floor((agi-10) / 2) + Math.randomInt(20) : x;
This has the same effect: Math.floor((base-10) / 2) + Math.randomInt(20)

I think if I can assign each actor their own variable at the start of the battle, it will work. However, I don't know what script calls I need in order to accomplish that.

I am using Yanfly STB, Battle Engine Core, and BaseParamControl, but I think for this you can also edit the rpg_objects.js file to the same effect. In case that isn't true, here are the links to the relevant plugins:

http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/
http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/
http://yanfly.moe/2017/03/24/yep-130-battle-system-standard-turn-battle-rpg-maker-mv/

Please let me know what more information I may need to include if the above isn't enough.

EDIT: I use the formula I posted above in the settings of Yanfly's base parameter control for agility.
EDIT: I've realized my issue is actually related to how the STB plugin works, and thus this topic and the forum it is end may not be the best for finding an answer.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-random-action-order-at-start-of-battle-only.84068/