imporved random logic for two lists