| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | A question |
Hi Darin! :-) PS>> Sure, but what's a good hash for random numbers? ;) DM> Not that I'm an expert or anything, but I would assume that if you DM> created an array that is the prime number equal to either the size of DM> the list, or the next prime number after that, and then just used % DM> to come up with the entry, you stand a pretty good chance of few DM> collisions. You're right, sounds like a very good approach. Ciao Pascal --- Msged/LNX 6.1.1* Origin: Linux FAQ - http://www.tzi.de/~pharao90/faq/ (1:153/401.2) SEEN-BY: 633/267 270 @PATH: 153/401 307 140/1 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.