Reworked mathExtras.randInt() to fix anomalous case of returning max + 1