double remain = fmod(block, diff) + rnd(networkhashps)
??
edit :
srand(nTime(block));
double remain = fmod(block, (rand(networkhashps) % (diff - rand(diff)) + 1)
This seems interesting... please expand because I don't quite follow. I see you randomizing the difficulty, network hash rate and nTime (which may be a bit over kill) to get a new remainder.
Its not tested, but in theory, you randomize a value from the nethash, rand(diff) or rand(networkhash).
There would be no way to just run the cmd fmod(block, diff) to calculate if it would be an anomaly or not - It would be almost impossible to guess. in theory,
edit: true something that deviates from what is standard, normal, or expected. It randomness is what make it an anomaly.
edit 2: you cant calculate a anomalies - you can only calculate probability