我正在研究一个数字生成器,它以字符串作为输入,并在特定范围内生成一个数字作为输出。为此,我需要确定 md5 校验和可以具有的最小和最大可能值,然后将 md5 校验和转换为该范围内的数字。如何将 md5 校验和转换为指定范围内的数字?
function getNumberInRange(md5checksum, min, max){
//generate a number between min to max, inclusive, using the md5 checksum that is entered in the input.
//Every input should have exactly one output.
}