rand method

void rand(
  1. int opcode
)

Implementation

void rand(int opcode) => registers.v[_rxIndex(opcode)] = Random().nextInt(opcode & 0xFF + 1);