#!/usr/bin/ruby -w # Generate text containing random distribution of tabs and spaces. require "digest" 9.times{|a| 9.times{|b| 9.times{|c| print "\t", " " * a, "\t", " " * b, "\t", " " * b, a, b, c, "\n" } } } 8.times{|i| [Digest::SHA2.hexdigest("random_bytes_#{i}")].pack("H*").each_byte{|x| case x & 3 when 0; print " " when 1; print "\t" when 2; print "#{x >> 2}\n" when 3; print "#{x >> 2}" end } } print "\n"