63555f679378d11a3b63b36da9eb1aa277645b21
1 package code
.kalter
.longflight
.crypto
;
4 * Простой Генератор Псевдослучайных Чисел
12 public Random(int next
) {
17 this((int) System
.currentTimeMillis());
22 next ^
= (next
>>> 17);
24 return Math
.abs(next
);
27 // random от [0] до [max - 1]
28 public int random(int max
) {
29 return random() % max
;