DIRECTOR: LINGO: Set range of b_random(i) as [1, i]

This commit is contained in:
Scott Percival 2020-02-08 14:25:53 +08:00
parent 31c8e09540
commit f08d512bff

View File

@ -408,7 +408,7 @@ void LB::b_random(int nargs) {
max.toInt();
res.u.i = g_lingo->_vm->_rnd.getRandomNumber(max.u.i);
res.u.i = g_lingo->_vm->_rnd.getRandomNumber(max.u.i - 1) + 1;
res.type = INT;
g_lingo->push(res);