This was built based on the perl version of the plugin. Where Perl rand(int) will return a 0 to int if positive or return -int to 0 if int is negative. Lua math.random requires two arguments for a range.
Located via Streaming Error Logs