This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我试图弄清楚如何随机分配两个单独的整数作为变量。如何在它们之间随机选择是有意义的(r.nextInt(02)),但我似乎找不到任何关于如何分配一个与另一个。我还尝试根据前两个变量的总和分配第三个变量,我想我理解int c = (int a + b)。但是你如何每次随机设置第三个?所以它可能是A,B或C?