Please see the Reference section below for terms.
Is there a known one-way method to produce an array of indexes, based only on two input elements:
- length of the resulting array
- number, used as a key to deterministically produce the array
If there exists only a method that can produce only fixed-length arrays - it can also be a good start for me.
|Length||Input number||Resulting array of indexes|
|4||10001||[3, 0, 2, 1]|
|4||10002||[2, 3, 1, 0]|
|5||10001||[2, 3, 4, 1, 0]|
|5||10002||[4, 3, 0, 1, 2]|
- an array of indexes:
Array, whose values are all integers from 0 to (array's length - 1), unordered.
- deterministic function:
A function, producing the same result every time the same input data is provided