histogram printed randomly