This module was released when the random table functionality was in its infancy. Since then, tables can have the number of rows equal to anything - it doesn’t have to match the dice. So, I’d recommend just deleting the re-roll rows from the table and it will then do a random number generation based off the number of remaining rows.
Once you’ve done that you may also want to look at this extension: https://www.fantasygrounds.com/forum...les-Extensions