A more or less anonymous reader commented on our last post, where we were reading data from a file with a varying number of fields. The format of the file was:1 Las Vegas, NV — 53.3 — — 12 Sacramento, CA — 42.3 — — 2The complication in the…
Tag: read complex data files
Example 8.1: Digits of Pi
Do the digits of Pi appear in a random order? If so, the trillions of digits of Pi calculated can serve as a useful random number generator. This post was inspired by this entry on Matt Asher’s blog. Generating pseudo-random numbers is a key piece o…