task.func = new Log(1 + random() * 9);
task.leftBorder = random() * 100;
task.rightBorder = random() * 100 + 100;
task.delta = random();
task.count = 100;
Runnable generator = new SimpleGenerator(task);
Thread generatorThread = new Thread(generator, "Generator");
//generatorThread.setPriority(Thread.MAX_PRIORITY);
Runnable integrator = new SimpleIntegrator(task);
Thread integratorThread = new Thread(integrator, "Integrator");
//integratorThread.setPriority(Thread.MAX_PRIORITY);