The following example uses the Rnd function to display a field with a random integer value from 1 to 6.
Int((6 * Rnd) + 1)