public static int rnd(int min, int max){ Random rnd = new Random(); return min + rnd.nextInt(max - min); } public static int rnd(int max){ return rnd(0,max); } further in the code, a random number is generated in me
_l2 = rnd(7); Big problem: the code works on the desktop, the numbers are generated normally, and when I run the same code on the android, in some cases I got that _l2 9.
Help.
InstantRunfails. Those. after changing the method parameter, the code on the device does not change and uses the old value. Try turning offInstantRunin studio settings - Yuriy SPb ♦