ctholho opened this issue 6 years ago · 1 comments
Line 145 and line 155 could be updated to use Float.random(in: 0 ... 1)
ClassicComputerScienceProblemsInSwift/Classic Computer Science Problems in Swift.playground/Pages/Chapter 2.xcplaygroundpage/Contents.swift
Line 145 in 3773196
Yup, but the book was written before Swift 4.2, and we don't want the code here to get out of sync with the print edition.