# f24ba673fee594920fbc737bd5e0dd794e4008cafe79ddb074e048e91064cbeb Elan 1.6.4 guest default_profile valid

main
  variable rnd set to new Random()
  call rnd.initialiseFromClock()
  variable dice set to 0
  for i from 1 to 10 step 1
    set dice, rnd to rollDice(rnd)
    print dice
  end for
end main

function rollDice(rnd as Random) returns (Int, Random)
  return rnd.nextInt(1, 6)
end function
