Problem 24

This commit is contained in:
2026-03-19 15:39:47 +01:00
parent 5935fcca99
commit 744de4fd94
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,7 @@
package ninetyNineScalaProblems
import scala.util.Random
object Problem24:
def lotto(n: Int, m: Int): List[Any] =
Problem18.slice(0, n, Random.shuffle(Problem22.range(1, m)))