updated random test loop, generated data