Hey shoppingcartforb,
You can achieve this using the Action Pack 2 plugin (currently available via our Patreon) which lets you include the Random modifier to Card Actions.
To make "Discard a random card from you hand, draw 1 card" with Action Pack 2, you might do something like this:
<Card Actions> Discard Random 1 Draw 1 </Card Actions>
If you don't wish to use Action Pack 2, then something like this would work as well:
<Card Actions> Eval var skWin = SceneManager._scene._skillWindow; skWin.discardCard(Math.floor(Math.random() * (BattleManager.actor().handSize) + skWin._itemsBeforeCards)) Draw 1 </Card Actions>
Hope that helps. Let us know if you need assistance with anything else.
Thanks,
MythAtelier Team