0 Members and 1 Guest are viewing this topic.
package NumberGen;import java.util.Random;/** * * author Kulverstukas * Written on: 2011.09.20 * http://newage.ql.lt/ * Evilzone.org * ---- * Generates a XxY square of random numbers * of given length in X and Y. * */public class NumberGen { public static void PrntHlp() { System.out.println(" Usage:\n" + "\tNumberGen N X Y\n" + "\tWhere N is a number of numbers\n" + "\tand X is a number on X axis\n" + "\tand Y is an number on Y axis.\n" + "\t\tExample: NumberGen 5 5\n"); } public static void main(String[] args) { PrntHlp(); if (args.length <= 1 ) { System.out.println("\nNot enough args given!"); } else if (args.length >= 2) { int X = Integer.parseInt(args[0]); int Y = Integer.parseInt(args[1]); Random Rand = new Random(); for (int CountY = 1; CountY <= Y; CountY++) { for (int CountX = 1; CountX <= X; CountX++) { System.out.print((Rand.nextInt(89)+10)+" "); if (CountX == X) { System.out.print("\n"); } } } } }}
what the fuck does any of this mean
for (int CountY = 1; CountY <= Y; CountY++) {
now this shit right here:Code: [Select] for (int CountY = 1; CountY <= Y; CountY++) {can trick almost any server. a vulnerability i cant believe no one has patched! >:O
Actually, Number generators can be used in gambling, statistical sampling, computer simulation, cryptography and more, anywhere really where random numbers are desirable. It's kinda like a virtual dice, but bigger.
Um.. In gambling?Number Gen. are predictable.. You know that right?I don't think they can be used in proper gambling.
Slot machines use randomly generated numbers. How do you think the numbers are produced? Of course it shouldn't be a generator that is easily predictable, but nevertheless you need a number generator.
It doesn't matter if it is hardware or software based. It is still a number generator.But yes, using noise, radioactivity or similar you are able to produce true random numbers (instead of pseudorandom ones).
I believe my question was wrongly phrased.I meant the random generator used by languages, that is the pseudo random generator.That cannot be used can it?It probably seeds by the time..