A simple java program

When debugging Lux sometimes it is helpful to simulate a computer that is slower, or under a heavy workload. In order to do that I wrote a very small java program. All it does is create a random number generator and then print out random numbers forever.
import java.util.Random;

public class HighLoad
{
public static void main (String args[])
{
Random rand = new Random();

while (true)
{
System.out.println(rand.nextInt(1000000));
}
}
}


Posted by dustin on March 21, 2004 with category tags of

2 comments
and I figured out how to plug in the TV!
   comment by MissNikki (#107) on March 21, 2004

uh...with Dustin's help.
   comment by MissNikki (#107) on March 21, 2004

   

VorgTag Cloud

Written by dustin
Latest Photo
Quote of Now:
Friends
Popular Posts
Computer Games

Hey You! Subscribe to dustin's RSS feed.
Or get wider opinion in the Vorg All Author feed.

 
 

Members login here.
© Vorg Group.