anegostudios / VintageStory-Issues

Vintage Story's public issue tracker for reporting bugs, crashes and the like
43 stars 16 forks source link

Pig genders out of balance for trapped piglets #3779

Open malnaur opened 6 months ago

malnaur commented 6 months ago

Game Version

v1.19.7

Platform

Windows

Modded

Vanilla

SP/MP

Singleplayer

Description

Trapped piglets to start a captive herd. Out of 11 piglets, ONE grew up to be a boar. Wiki says 25% and this was not close.

How to reproduce

No response

Screenshots

No response

Logs

Log

MonsterHorns commented 6 months ago

25% chance doesn't mean it will always be that distibution, that's not how probability works. Also 25% of 11 is between 2 and 3, so not far off. If you spawned in 100 piglets, it would probably be closer to 25%.

malnaur commented 6 months ago

I'm quite aware of "how probability works". I started with 6 piglets. All became female. If each was a 75% chance, the probability of all 6 female is <18%. I then added 5 more but I don't know when the male appeared but if the 7th was the male, probability of 10 females and 1 male is then 1.4% So, VERY unlikely but possible the RNG was not kind to me. It's worth checking the RNG used in the game to verify it is not biased. Many readily available ones are not as random as they should be.