nl_tokens: Return a random price based on the previous price and volatility
pl_tokens: function randomPrice ( oldPrice , volatility ) { const rnd = randomNumber ( ) ; let changePercent = 2 * volatility * rnd ; if ( changePercent > volatility ) { changePercent -= ( 2 * volatility ) ; } const changeAmount = oldPrice * changePercent ; const newPrice = oldPrice + changeAmount ; <mask> newPrice ; }