I need a sort of algorithm or a library that can do this stuf:
I suppose to have an integer sequence of numbers that starts with 0 and ends with n number, such as:
0,1,2,3,4,5,6,7,8,9,10,11
I want to mess up this sequnce of numbers by a numeric key, so i use as key 378 and the algoritm give me this new sequence of numbers:
7,5,3,11,0,9,4,1,8,10,2
so my question is. There is a sort of algoritm or library that can do this in java?