a java propability algorithm