# 548e5b5fea779243b1b0bfb95256364e3b860ed07ff9eca57f78b03c82ebd141 Elan 1.8.0 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
