added randomValue function, which spits out value 2, 3/4 of the time