Pure functional random in Scala This source code is a very basic pure functional random based on "Functional Programming in Scala" chapter 6.