> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 09:32:38 up 1 day 9:48, 2 users, load average: 0.04, 0.29, 0.41
This commit is contained in:
parent
6988dfddbd
commit
0a571ee71b
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void gen_num(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void gen_rand_op(void) {
|
void gen_rand_op(void) {
|
||||||
switch(rand() % 4) {
|
switch(rand() % 3) {
|
||||||
case 0: gen('+'); break;
|
case 0: gen('+'); break;
|
||||||
case 1: gen('-'); break;
|
case 1: gen('-'); break;
|
||||||
case 2: gen('*'); break;
|
case 2: gen('*'); break;
|
||||||
|
|
Loading…
Reference in a new issue