Bugfix generation of random attack value.