fix typo: RANDMIN -> RANDMAX