I was looking for a random number function, thought I found “rand()” in the Squirrel documentation, but had trouble using it. Is this the correct function to call to get a random number? I think I can take it from there.
math.rand() will return a number between 0 and 2147483647.
To add to beardedinventor’s comment, the imp has all of Squirrel’s math routines available; you just need to prefix each function with
math. to use it.