问题
I'm working on a number generator that takes a string as input, and produces a number in a specific range as output. In order to do this, I'll need to determine the minimum and maximum possible value that an md5 checksum can have, and then convert the md5 checksum to a number in that range. How can I convert an md5 checksum to a number in a specified range?
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.
}
来源:https://stackoverflow.com/questions/15034013/generate-a-number-in-a-specific-range-from-a-checksum