Quick ruby script to generate a random grid