You are on page 1of 1

Random

/*
* Filename: "Random.java"
* Created by 1,000_naymes for ICt 352
* Purpose: to print 100 random characters
*/
import java.util.Scanner;
import java.lang.Math;
public class Random
{
public static void main( String[] args )
{
int i = 0;
final int NumberOfChars = 100;
final int CharsPerLine = 10;
double randomValue = 1 + Math.random() * 10;
do
{
System.out.println( randomValue + i++ );
i++;
System.out.println( randomValue + i++ );
}
while( i < NumberOfChars );
}
}

Page 1

You might also like