# ab50aef0dc1f1c7eb0a21fcdd22de1ba41d8a69c2f3f751267c5afba8cdff9d3 Elan 1.8.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
