August 27, 2024
P24 - Lotto: Draw N N different random numbers from the set 1.. M 1..M.
Example:
scala
scala> lotto(6, 49)
res0: List[Int] = List(23, 1, 17, 33, 21, 37)
August 27, 2024
Example:
scala
scala> lotto(6, 49)
res0: List[Int] = List(23, 1, 17, 33, 21, 37)
Don't have an account? We will create one for you.
Enter the OTP send to
in seconds.