2Dirty Player: Where is the misunderstanding? :) To run 11 tests, you need to start the battle from the beginning 11 times. Right? And 11 times the value of R (which depends on the "seed") will be different! This means that 10 times, the values of R resulted in the remainder being the same (more precisely, [remainder + 1] was not greater than the morale), and on the 11th time, everything happened the other way around. I repeat, this is just an assumption, and the morale mechanism in Heroes 3 is more complex than in Heroes 2.
2K0Lb@zzeR: IDA Pro v5.02. The conclusion is unambiguous; if needed, I can send you a code snippet in a private message.
P. S. In general, I started all this in the hope of learning how to predict morale and luck, but it seems that due to their pseudo-random nature, you can't do it with just your brain... Although, of course, you can try to write a program that would read the value of R from the RAM and "predict" the occurrence of morale and luck. By the way, thanks to this mini-research, I finally saw the animation of bad luck (a thundercloud and lightning) :)
Auto-translated