random data debugging, histogram drawing