Quote:
Originally Posted by DustyPorViva
temp.fishtype[int(random(0, temp.fishtype.size())+.5)]
|
Pretty sure that would eventually lead to attempting to access an out-of-bounds element in the array. For whatever technical reason, random(a, b), should/will never return the value of b. So we can safely use int(random(0, arraysize)) to retrieve any member of an array since int will round it downward.