publicclass NextIntPowerOfTwoMod { publicstaticvoid main(String[] args) throws Exception {
Random r = new Random(69); int total = 0; for (int i=0; i<1000; i++)
total += r.nextInt(16); if (total != 7639) thrownew RuntimeException("Not using correct algorithm.");
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.