генерировать случайный Bool Swift
let flippedHeads = Bool.random()
if flippedHeads {
print("Heads, you win!")
} else {
print("Maybe another try?")
}
Defeated Dormouse