AnsweredAssumed Answered

Ceiling ( Random * 6 )   (Excercise in FM Training Series)

Question asked by Polarpro on Mar 12, 2014
Latest reply on Mar 18, 2014 by Stephen Huston



in FileMaker 12 Training Series they ask for the result of the following function:

Ceiling ( Random * 6 )


The solution according to the Training Series is:

A random integer from 1 to 6


That seems to me not correct. The Random function is explained as

Returns a random decimal number between 0 and 1 (including 0, but not including 1).


So, if Random returns 0.0, then 0.0*6 is also 0, and Ceiling(0) is 0.

So, I'd say the correct answer is: A random integer from 0 to 6


Who is right, FileMaker or me? ;-)