Random mapping of one space to another less numerous space

J dev

New member
Joined
Dec 30, 2016
Messages
1
i have 2 sets of integers in variable base, in this case the first space has a different base for each digit NMJK while the second is GGGG. the range of numbers that the first can represent is roughly 5 time the second. i need to create a surjective function from the first to the second. Many come to mind, i can also write deterministic alghoritm to do that. But before reeinventing the wheel is there some standard way to write a f(x) with minimized local correlation between x and f(x)?
 
Top