herrDeng網內搜尋

自訂搜尋

Ads

2013年5月14日 星期二

產生0~1000之間100個int亂數

產生0~1000之間100個int亂數

57 則留言:

B9933133張靖 提到...

public class Test_01 {
public static void main(String[] args) {
for (int s = 0; s < 100; s++) {
double x = Math.random();
int i = (int) Math.round(1000 * x);
System.out.println(i);
}
}
}

B9933122苑珮婕 提到...

public class Hello {
public static void main(String[] args) {
for (int s = 0; s < 100; s++) {
double x = Math.random();
int i = (int) Math.round(1000 * x);
System.out.println(i);
}
}
}

b10133045林玹安 提到...

public class apple{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}

B10133016王致翔 提到...

public class MtcTW
{
public static void main(String[] args)
{
for(int i = 0 ; i<=100 ;i++)
{
int a = (int)(Math.random()*1000); System.out.println(a);
}
}
}

B10133002 謝佩紋 提到...

public class h2 {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133014 吳欣怡 提到...

public class ex1 {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

b10133023徐顥 提到...

public class sam
{
public static void main(String[] args)
{
for(int i = 0 ; i<=100 ;i++)
{
int a = (int)(Math.random()*1000);
System.out.println(a);
}
}
}

B10133009 王韋翔 提到...

public class TS {
public static void main(String[] args)
{
for (int j=1;j<101;j++)
{
double n=Math.random();
int i=(int)Math.round(1000*n);
System.out.println(j+": "+i);
}
}
}

B10133030林潔如 提到...

public class lan {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133018翁湘姿 提到...

public class lan {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133048饒家華 提到...

public class got {
public static void main(String[] args) {

for(int k=1; k<=100; k++){
double x=Math.random();
int i=(int)Math.round(1000*x);
System.out.println(i);

}
}

}

B10133046邱誌寬 提到...

class SOR{
public static void main(String[]args){
for(int k=1;k<=100;k++){
double x=Math.random();
int i=(int)Math.round(1000*x);
System.out.println(i);
}
}
}

B10133038池侑承 提到...

public class awing {

public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int a = (int)(Math.random()*1000);
System.out.println(a);
}
}


}

B9933179陳俊翰 提到...

public class random {


public static void main(String[] args) {

int i=0;
while (i<100) {
double x=Math.random();
int a = (int) Math.round(1000 * x);
System.out.println(a);
i++;
}

}

}

B10133040溫翊惠 提到...

public class aa {
public static void main(String[] args) {
for (int k=0; k<=100; k++){
double x=Math.random();
int i=(int) Math.round(1000*x);
System.out.println(i);
}
}
}

B10133036孫翊玲 提到...

public class aa {
public static void main(String[] args) {
for (int k=0; k<=100; k++){
double x=Math.random();
int i=(int) Math.round(1000*x);
System.out.println(i);
}
}
}

B1013 提到...

public class lan {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133031 邱敏惠 提到...

public class java {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133011黃怡蓁 提到...

public class hello {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133042沈俞宜 提到...

public class shark { public static void main(String[] args) { for(int i = 0 ; i<=100 ;i++){ int n = (int)(Math.random()*1000); System.out.println(n); } } }

B10133047 鄭兆珊 提到...

public class san {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133004徐芷瑩 提到...


public class hello123 {


public static void main(String[] args) {
for(int k=0; k<=100;k++){
double x=Math.random();
int i=(int) Math.round(1000*x);
System.out.println(i);
}

}

}

B10133010蔡以翎 提到...

public class java1 {


public static void main(String[] args) {

for(int k=0;k<=100;k++){
double x=Math.random();
int i=(int)Math.round(1000*x);
System.out.println(i);
}

}

}

b10133032黃徐琨 提到...

public class aa
{
public static void main(String[] args)
{
int[] a = new int[100];
for (int i=0; i < a.length ;i++)
{
a[i] = (int)(Math.random()*1000+1);
System.out.println(+a[i]);
}
}

B10133053古聿穎 提到...

public class aa {
public static void main(String[] args) {
for(int k=0; k<=100; k++ ){
double x=Math.random();
int i=(int)Math.round(100*x);
System.out.println(i);
}

}

}

B10133013林子恩 提到...

public class pso2 {
public static void main(String[] args) {
for(int x=1;x<101;x++){
double i=Math.random();
int j=(int)Math.round(100*i);
System.out.println("第"+x+"個"+j);
}
}
}

B10133051張丞緯 提到...

public class ex1 {
public static void main(String[] args) {
for(int x=1;x<101;x++){
double i=Math.random();
int j=(int)Math.round(100*i);
System.out.println("第"+x+"個"+j);
}
}
}

B10133008許耀文 提到...

public class dog {
public static void main(String[] args) {
for(int x=1;x<101;x++){
double i=Math.random();
int j=(int)Math.round(100*i);
System.out.println("第"+x+"個"+j);
}
}
}

B10133025王柏文 提到...


public class aaa {

public static void main(String[] args) {
for(int x=1;x<101;x++){
double i=Math.random();
int j=(int)Math.round(100*i);
System.out.println("第"+x+"個"+j);

}

}

}

B10133017張永憲 提到...

public class new
{
public static void main(String[] args)
{
int[] a = new int[100];
for (int i=0; i &lt; a.length ;i++)
{
a[i] = (int)(Math.random()*1000+1);
System.out.println(+a[i]);
}
}

B10133027黃為邦 提到...

public class DD
{
public static void main(String[] args)
{
int[] a = new int[100];
for (int i=0; i &lt; a.length ;i++)
{
a[i] = (int)(Math.random()*1000+1);
System.out.println(+a[i]);
}
}

B10133005李沛澤 提到...

public class test
{
public static void main(String[] args)
{
int[] a = new int[100];
for (int i=0; i &lt; a.length ;i++)
{
a[i] = (int)(Math.random()*1000+1);
System.out.println(+a[i]);
}
}

B10133037施竣哲 提到...

public class abc
{
public static void main(String[] args)
{
int[] a = new int[100];
for (int i=0; i &lt; a.length ;i++)
{
a[i] = (int)(Math.random()*1000+1);
System.out.println(+a[i]);
}
}

B10133028李炳燁 提到...

public class awing {

public static void main(String[] args) {
for(int i = 0 ; i&lt;=100 ;i++){
int a = (int)(Math.random()*1000);
System.out.println(a);
}
}

}

B10133012呂富凱 提到...

public class awing {

public static void main(String[] args) {
for(int i = 0 ; i&lt;=100 ;i++){
int a = (int)(Math.random()*1000);
System.out.println(a);
}
}

}

b10133022蔡承霖 提到...

public class awing {
public static void main(String[] args) {
for(int i = 0 ; i&lt;=100 ;i++){
int a = (int)(Math.random()*1000);
System.out.println(a);
}
}
}
.

B10036036陸語萱 提到...

public class Test_01 {
public static void main(String[] args) {
for (int i = 0; i < 100; i++) {
double x = Math.random();
int a = (int) Math.round(x * 1000);
System.out.println(a);
}
}
}

B9833091陳孟偉 提到...

public class NYPD {
public static void main(String[] args) {
for (int s = 0; s < 100; s++) {
double x = Math.random();
int i = (int) Math.round(1000 * x);
System.out.println(i);
}
}
}

B9833102曾冠誌 提到...

public class apple{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}


匿名 提到...

public class test{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}


B10133003王冠文 提到...

public class test{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}


B10133015楊超文 提到...

public class DD
{
public static void main(String[] args)
{
int[] a = new int[100];
for (int i=0; i < a.length ;i++)
{
a[i] = (int)(Math.random()*1000+1);
System.out.println(+a[i]);
}
}

B10133044吳盛盟 提到...

public class app{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}


b10133021吳屹軒 提到...

public class yo121
{
public static void main(String[] args)
{
for(int i = 0 ; i<=100 ;i++)
{
int a = (int)(Math.random()*1000); System.out.println(a);
}
}
}

B10133029 彭義竣 提到...

for (int i = 1; i <= 100; i += 1) {
int num = (int)(1000 * Math.random() + 1);
System.out.println(num + '\t');
}

B10133048饒家華 提到...

public class apple{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}

B10133050張珈祥 提到...

public class wo {
public static void main(String[] args)
{
for (int j=1;j<101;j++)
{
double n=Math.random();
int i=(int)Math.round(1000*n);
System.out.println(j+": "+i);
}
}
}

b9933180陳威羽 提到...

public class random {


public static void main(String[] args) {

int i=0;
while (i<100) {
double x=Math.random();
int a = (int) Math.round(1000 * x);
System.out.println(a);
i++;
}

}

B10133050張珈祥 提到...

public class wo {
public static void main(String[] args)
{
for (int j=1;j<101;j++)
{
double n=Math.random();
int i=(int)Math.round(1000*n);
System.out.println(j+": "+i);
}
}
}

B10133033呂之筠 提到...

public class hello{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}


B10133049 連于瑄 提到...

public class low {
public static void main(String[] args) {
for(int i = 0 ; i<=100 ;i++){
int n = (int)(Math.random()*1000);
System.out.println(n);
}
}
}

B10133034石嘉萱 提到...

public class aa {
public static void main(String[] args) {
for (int k=0; k<=100; k++){
double x=Math.random();
int i=(int) Math.round(1000*x);
System.out.println(i);
}
}
}

B10133019 王騰侑 提到...

public class Test_01 {
public static void main(String[] args) {
for (int s = 0; s < 100; s++) {
double x = Math.random();
int i = (int) Math.round(1000 * x);
System.out.println(i);
}
}
}

B10133019 王騰侑 提到...

public class Test_01 {
public static void main(String[] args) {
for (int s = 0; s < 100; s++) {
double x = Math.random();
int i = (int) Math.round(1000 * x);
System.out.println(i);
}
}
}

B10133019 王騰侑 提到...

public class Test_01 {
public static void main(String[] args) {
for (int s = 0; s < 100; s++) {
double x = Math.random();
int i = (int) Math.round(1000 * x);
System.out.println(i);
}
}
}

B10133019 王騰侑 提到...

public class Test_01 {
public static void main(String[] args) {
for (int s = 0; s < 100; s++) {
double x = Math.random();
int i = (int) Math.round(1000 * x);
System.out.println(i);
}
}
}

B10133043陳宗霖 提到...

public class apple{
public static void main(String[]args){
for(int i = 0 ; i<=100 ;i++){

int a = (int)(Math.random()*1000);
System.out.println(a);
}

}
}

Related Posts Plugin for WordPress, Blogger...

熱門文章