add index random method