On the mode-change problem for random measures