The Rock-Paper-Scissors game

Report a typo

Imagine that you want to play the "Rock-Paper-Scissors" game and you need to write a function makeDecision() that returns "Rock", "Paper", or "Scissors" depending on a random number from 1 to 3.

Write that function.

Write a program in Kotlin
import kotlin.random.Random

fun makeDecision(): String {
// write here

}
___

Create a free account to access the full topic