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

Sign up
Appearance settings

Commit 0be573d

Browse files
author
NecmiyeSoylu
committed
Random kulllanımı
1 parent f6fd524 commit 0be573d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎Rand.java‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import java.util.Random;
2+
public class Rand
3+
{
4+
public static void main(String[] Soylu)
5+
{
6+
Random rand=new Random();
7+
int a=rand.nextInt();
8+
int b=rand.nextInt(10);
9+
10+
double c=rand.nextDouble();
11+
double d=rand.nextDouble(10.0);
12+
13+
System.out.printf("%d%n%d%n%f%n%f",a,b,c,d);
14+
}
15+
16+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /