Tweaked randos matching formula so no more infinite loop