adds random method for all repositories