Basically, what I want to do is check two integers against a given value, therefore, classically what you would do is something like this:
//just to get some
if(a == 0 || b == 0) { //Then do something }
Why not keep it readable? What is not concise about this? On the other hand,
a = (int)(Math.random()*5);
involves an unnecessary cast. Why not just use Random and invoke nextInt()?
Random
nextInt()