Browse Source

changes R to max exclusive to match orca-js behavior

master
Nicola Pisanti 6 years ago
parent
commit
762337b0f6
  1. 2
      sim.c

2
sim.c

@ -651,7 +651,7 @@ BEGIN_OPERATOR(random)
}
Usz key = y * width + x;
key = hash32_shift_mult((y * width + x) ^ (Tick_number << UINT32_C(16)));
Usz val = key % (max + 1 - min) + min;
Usz val = key % (max - min) + min;
POKE(1, 0, glyph_of(val));
END_OPERATOR

Loading…
Cancel
Save