generate random history data