Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 116bdcc

Browse filesBrowse files
TnecivTneciv
authored andcommitted
修改“《=”为“<=” at line 16
1 parent c93bef0 commit 116bdcc
Copy full SHA for 116bdcc

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎contents/generating-random-integers-in-a-range-with-Java.md

Copy file name to clipboardExpand all lines: contents/generating-random-integers-in-a-range-with-Java.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ int num =(int)(Math.random() * 11);
1010
1111
```
1212

13-
那如何产生 “5= 随机数 <= 10” 的随机数呢?
13+
那如何产生 “5 <= 随机数 <= 10” 的随机数呢?
1414

1515
```
1616
int num = 5 + (int)(Math.random() * 6);
@@ -29,7 +29,7 @@ int num = min + (int)(Math.random() * (max-min+1));
2929

3030
Random 是 java 提供的一个伪随机数生成器。
3131

32-
生成 “min <= 随机数 <= max ” 的随机数:
32+
生成 “ min <= 随机数 <= max ” 的随机数:
3333

3434
```
3535
import java.util.Random;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.