in reply to Re^2: Random 1-1 mapping
in thread Random 1-1 mapping
2) You need an offset if zero is involved.
3) Yes, multiplying by a prime mod some other prime will do what you want. There are probably several other configurations that will do the same, and some will be better than what I've given. There are numerous approaches, rules, tests, and other info that you can dig up. I'd start with Mathworld or Wikipedia.
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|