Receives and returns a number between [0,1].