I have a legacy function that looks like this:
int Random() const { return var_ ? 4 : 0; }
and I need to call a function within that lega
if it's really a random number generator, then the number generation code/state could likely be placed in a class-local static generator. this way, your object is not mutated and the method may remain const.