forked from damaohongtu/JavaInterview
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMoveBit.java
More file actions
28 lines (24 loc) · 657 Bytes
/
MoveBit.java
File metadata and controls
28 lines (24 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package JavaBasic;
import java.util.Random;
/**
* @Classname MoveBit
* @Description TODO
* @Date 19-7-15 上午10:41
* @Created by mao<tianmao818@qq.com>
*/
public class MoveBit {
public static void main(String[] args){
// int flag=1;
// while (flag!=0){
// flag=flag<<1;
// System.out.println(flag);
// }
Random random=new Random(818);
for(int i=0;i<5;i++){
System.out.println(random.nextGaussian());
System.out.println(random.nextInt(500));
System.out.println(random.nextDouble());
System.out.println(Math.random());
}
}
}