Added random method