# 0fa4283c6081b530ff996035a3daac13acc8c65683ba1ca85fe7f9f574d93f2d Elan 1.6.2 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
