【发布时间】:2023-03-29 19:31:01
【问题描述】:
…………我 如何 nihas 零答案 只有一个答案,但该答案没有 upvoteshas 零答案 只有一个答案,但该答案没有 upvoteshas 零答案 只有一个答案,但该答案没有赞成票
【问题讨论】:
…………我 如何 nihas 零答案 只有一个答案,但该答案没有 upvoteshas 零答案 只有一个答案,但该答案没有 upvoteshas 零答案 只有一个答案,但该答案没有赞成票
【问题讨论】:
我不会告诉你如何回答整个问题。但是您似乎主要对随机部分感到困惑。以下是你的做法。
Random rand = new Random();
int i = 582; // some arbitrary integer to act as the input
int randInt = rand(5) + 5; // random value from 5 - 9 inclusive
int j = i + randInt; // add the random value to the output integer
i 是输入文件中的整数,j 是输出整数。
【讨论】: