remove math random function from model