having a issue. I did everything as it says and its having trouble compiling. That being said I then opened the final product made by you guys. It had the same issue “Type ‘Int’ has no member ‘random’”
count = 0
var roll: Int = 0
repeat {
roll = Int.random(in: 1…6)
count += 1
// if count > 5 {
// break
// }
print(“After (count) roll(s), roll is (roll)”)
} while roll != 6 && count < 5
Reply
shogunkaramazovmoderator
@lac_ekim What Xcode version are you using?
Reply
@shogunkaramazov Version 10.1 (10B61)