Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

RageLeague

Random non-negative parameter, intended or not?

Recommended Posts

rooks    240

Can you give an example?  Do you mean the math.random function which is built into lua? 

Share this post


Link to post
Share on other sites
RageLeague    1485

Yeah, but specifically the one I used in Agent:CalculateProperty parameter, which at that point, would be temporarily replaced with an instance of engine.Random. Not sure whether that would come into play or not.

Share this post


Link to post
Share on other sites
rooks    240

Ah, interesting.  Yes engine.Random seems to use some unsigned values, causing it to behave differently than math.random for negative parameters.  I will push a fix.

Share this post


Link to post
Share on other sites