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)
Be first to comment
Leave a reply