Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^3: Random 1-1 mapping

by QM (Parson)
on May 28, 2006 at 19:56 UTC ( #552210=note: print w/replies, xml ) Need Help??

in reply to Re^2: Random 1-1 mapping
in thread Random 1-1 mapping

1) Did this code/idea help you?

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.

Quantum Mechanics: The dreams stuff is made of

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://552210]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2023-10-01 22:29 GMT
Find Nodes?
    Voting Booth?

    No recent polls found