random method fixed