Chapter 6. Other functions

Random number generation, memory allocation, logging.