One test of randomness is the runs test (Bradley, (1968). Distribution-Free Statistical Tests, Chapter 12). A run is defined as a series of increasing values or a series of decreasing values. The number of increasing, or decreasing, values is the length of the run. For example UP DOWN is a run...