How do I go about reverse engineering this random generator so that it returns the initial value "123456" from the generated random value?
public class calcus {
public static void main(String[] args) {
int count = 0;
StringBuilder sb = new StringBuilder();
Random r = new Random(123456);
while (count < 7) {
count++;
sb.append(r.nextInt(27)).append(",");
}
String[] reverseNumber= sb.toString().split(",");
System.out.println(Arrays.toString(reverseNumber)); // [9, 11, 19, 16, 19, 4, 15]
}
}