Using a Global Variable as a range for a random number produces a floating point number
I'm sure this is a bug, and it was bugging me for ages, until the penny dropped.
I'm using Global variables "SizeX" and "CurrentCellX", and I'm only using integer calculations throughout, but I wasn't getting conditions firing when comparing CurrentCellX to an integer, and the debugger revealed why.
Having set "SizeX" to 10, and then setting "CurrentCellX" using
Set "CurrentCellX" to random("SizeX")+1
the debugger showed that "CurrentCellX" was producing values like 2.09159510755603 and 3.46251876045338
So it looks like using a Global variable as a range in the random statement produces a floating point value.
Could someone else confirm this please.