You have been hired to make a lottery draw app. Given a list of candidate numbers, please complete the function shuffledNumbers to distribute them randomly to get the winning sequence.
Ordering elements in collection
The Lottery draw
Report a typo
Sample Input 1:
1 3 4 5 6 7 8Sample Output 1:
trueWrite a program in Kotlin
fun shuffledNumbers(numbers: List<Int>): List<Int> {
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.