0 doesn't equal 0

whenever you want to re-use a random integer, it should be stored in a variable. ReAccessing the output pins on random functions produces random results.