Random Element Rate

How can i set an enemies or allies element rate to a random number?
Afraid you can't. The element rate must be preset. The closest you could come to a random number is to make many version of the same enemy (or actor), then select one at random to use.
You can, but it is not the easiest javascript. Especially if you want to randomize every enemy (like every slime to have different rates). If you wanted to randomize it like "At the beginning slimes get this rate", it would be easier, but still not the easiest to do.

First you need to set it up in database to any percentage
Then you need to edit the value inside $dataEnemies.
This $dataEnemies is saved during saves, so no worries that it gets lost.

Original thread: https://forums.rpgmakerweb.com/threads/random-element-rate.88081/