d={} 9999.times{d[(0..5).sort_by{rand}]=1} d.sort.each{|x|puts x[0]*' '}