add random method