该功能将是这样的。
int generateSortOfRandomInt(int X, int Y){
/*
Your program
*/
return randomINT that is always the same for X and Y
}
如果 generateSortOfRandomInt(5,15) != generateSortOfRandomInt(15,5)
一个例子就像
int value1 = generateSortOfRandomInt(1, 3); // 546547
int value2 = generateSortOfRandomInt(3, 1); // 134566
int value3 = generateSortOfRandomInt(1, 3); // 546547 THE SAME AS value1
int value4 = generateSortOfRandomInt(2, 3); // 646621
谢谢