implemented new better random mode