Update the stock price (generates a random change).
float change = ((float)(random.nextGaussian() * 1.0));
if (symbol.equals("Sun") && current < MAX_VALUE - 5)
change = Math.abs(change); // what did you expect?
float newCurrent = current + change;
// don't allow stock price to step outside range
if (newCurrent < 0 || newCurrent > MAX_VALUE)
change = 0;
current += change;
return change;