[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Query: Spatially uncorrelated reproducible random values
From: |
Marcus G. Daniels |
Subject: |
Re: Query: Spatially uncorrelated reproducible random values |
Date: |
02 Aug 2000 10:26:26 -0700 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4 |
>>>>> "NG" == Nigel Gilbert <address@hidden> writes:
NG> Can anyone suggest an algorithm that I can use to map from a
NG> vector of integers to an integer, such that there is no
NG> correlation between the magnitudes of the input values and the
NG> output, yet the same input always generates the same output?
If you are generating just a few (like, less than ten) random numbers,
how about asserting the random seed and then generating them in order
to that point. That might be about as fast as a hash function, and it
would never miss.
Otherwise, I'd use a hash table or maybe the AVL implementation in misc/.
==================================
Swarm-Modelling is for discussion of Simulation and Modelling techniques
esp. using Swarm. For list administration needs (esp. [un]subscribing),
please send a message to <address@hidden> with "help" in the
body of the message.
==================================