- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
public int random() {
long info = (long) (System.currentTimeMillis() + Runtime.getRuntime().freeMemory() + System.nanoTime());
long info2 = (long) (System.currentTimeMillis() + Runtime.getRuntime().hashCode() + System.nanoTime());
this.rnd1.setSeed(info);
this.rnd2.setSeed(info2);
int a = this.rnd1.nextInt();
int b = this.rnd2.nextInt();
return (int) (a <<= b);
}
guest 28.02.2010 21:13 # 0
guest 01.03.2010 12:03 # 0
но даже так это глупость :)