Generation

generate functionSat, 12 Nov 2022

Pronounce a blessing upon the name passed into the function and return the days lottery number picks

func lottery(name: String) -> (Int, Int, Int, Int, Int) { print("Blessed be \(name)") return (Int(arc4random_uniform(UInt32(54))), Int(arc4random_uniform(UInt32(54))), Int(arc4random_uniform(UInt32(54))), Int(arc4random_uniform(UInt32(54))), Int(arc4random_uniform(UInt32(54)))) } lottery("James")

Questions about programming?Chat with your personal AI assistant