use row count instead of random number to eliminate dups