Contact: aviboots(AT)netvision.net.il
39,987 questions
51,931 answers
573 users
import Foundation func rollDice() -> Int { Int.random(in: 1...6) // 1–6 inclusive } let dice1 = rollDice() let dice2 = rollDice() print("Dice 1: \(dice1)") print("Dice 2: \(dice2)") /* run: Dice 1: 3 Dice 2: 3 */