package start4_2; import java.util.Random; /** * Author: Josiah Yoder et al. * Class: SExxxx-xx * Date: 1/7/14 7:45 AM * Lesson: Week x, Day x */ public class Example { public static void main(String[] ignored) { Example ex = new Example(); ex.run(); } public void run() { Random gen = new Random(); double positionMeters = 0; for(int i= 0; i<10; i++) { positionMeters += gen.nextDouble(); System.out.println("Now we are at: "+positionMeters); } } }