> 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:34:30 up 1 day 9:50, 2 users, load average: 0.38, 0.33, 0.41
This commit is contained in:
parent
0a571ee71b
commit
d3f715fb4f
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() % 3) {
|
switch(rand() % 4) {
|
||||||
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