# c55a1f64c90991ceb40a7b72e7124e185512038e5526badecf705f82bbaffe30 Elan 1.7.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
