07-24-2003, 08:20 AM
(This post was last modified: 07-24-2003, 08:22 AM by the Langolier.)
Thank you so much for the insight! I just assumed that each combination was equally probable than the others and didn't think otherwise. I quickly wrote another program that does the same, and it all worked out. After the weekend I will get back to the original project of creating the histrogram instead of the probabilities. At least my first program is somewhat interesting. It can output all possible combinations (most recorded was 10,270 on dlvl 3 - not counting dlvls 4-6 which take at least an hour of computing to determine) for a level and lists how many combination each monster appears in.
>Also, from your program, it seems you assume there never spawn more than 3 types of monsters on a level, that is not true.
I only posted three levels to keep it from getting too confusing and that is all that is needed for dlvl 14 and 15. The actual source goes up to ten.
Here are some quick results from the routine. The values are virtually those that are in the guide, plus or minus a percent. I ran 500,000 iterations, but it doesn't seem to be anymore accurate than 100,000 for smaller levels. Speaking of which, I know the random values aren't actually random, but what is going on with dlvl 1? Can you make the random numbers MORE random - is there a way to get more accurate results?
>Also, from your program, it seems you assume there never spawn more than 3 types of monsters on a level, that is not true.
I only posted three levels to keep it from getting too confusing and that is all that is needed for dlvl 14 and 15. The actual source goes up to ten.
Here are some quick results from the routine. The values are virtually those that are in the guide, plus or minus a percent. I ran 500,000 iterations, but it doesn't seem to be anymore accurate than 100,000 for smaller levels. Speaking of which, I know the random values aren't actually random, but what is going on with dlvl 1? Can you make the random numbers MORE random - is there a way to get more accurate results?
Code:
mSize   Prob.
~~~~~~~~~
Dlvl 1:
799 Â Â 81.8808%
543 Â Â 83.0794%
553 Â Â 83.756%
623 Â Â 87.3978%
410 Â Â 121.625%
575 Â Â 132.085%
(average probability for dlvl 1 ~ 100%)
Dlvl 6:
570 Â Â 30.6454%
578 Â Â 30.442%
413 Â Â 42.2644%
366 Â Â 46.4796%
367 Â Â 48.2684%
993 Â Â 22.9128%
994 Â Â 23.0402%
1030 Â Â 22.1982%
1031 Â Â 22.3858%
1032 Â Â 22.3006%
1040 Â Â 22.2794%
1041 Â Â 22.3398%
1042 Â Â 22.4784%
1130 Â Â 22.077%
1650 Â Â 16.7808%
716 Â Â 30.0854%
Dlvl 14:
719 Â Â 26.1026%
1743 Â Â 10.0414%
2202 Â Â 9.5376%
2203 Â Â 9.5392%
1271 Â Â 21.144%
1272 Â Â 21.126%
980 Â Â 21.856%
981 Â Â 21.7238%
982 Â Â 22.3446%
2120 Â Â 9.5238%
2121 Â Â 9.551%
2122 Â Â 9.5396%
2123 Â Â 9.5144%
2000 Â Â 9.4948%
2001 Â Â 9.564%
Dlvl 15:
2203 Â Â 16.6936%
1273 Â Â 32.7402%
981 Â Â 32.8576%
982 Â Â 32.918%
983 Â Â 34.74%
2121 Â Â 16.7978%
2122 Â Â 16.595%
2001 Â Â 16.6094%
2002 Â Â 16.6766%