In function main in ch02/stats.go the following code prevents randomFloat from ever being used to populate the stats application with random data:
func main() {
arguments := os.Args
if len(arguments) == 1 { // This if check should be removed so random data can be generated if no args supplied
fmt.Println("Need one or more arguments!")
return
}
...
In function
main
in ch02/stats.go the following code preventsrandomFloat
from ever being used to populate the stats application with random data: