fixed randomSelect