![]() |
Probabilities
PHP Code:
This is useful when you have a list of objects that carry different weight... And you want to select a random object. One classical example would be mining: The the higher classed minerals have a lower rate of obtaining it. PHP Code:
I am planning on adding different probability functions to it later. |
Very nice Novo :)
|
Excellent job here Novo!
It's really flexible in terms of uses. Like with the mine table or even a fish table. But, a question, would running a for loop through your table and setting it as the second param net you different things from the table but make the most probable the one you get the most? I'm at school and don't have the ability to test for another couple hours or so and was thinking about it, got very curious as to how I could work with that. E: Also where'd you get the 64 max prob num from? |
You released it! I like it, nice work!
|
Quote:
PHP Code:
Probably from there :p |
All times are GMT +2. The time now is 08:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.