How random is "random" in consistency? Try unloading all scripts you may have loaded and see if it happens again. Also any updates recently installed, try reverting from them.

If you could reliably reproduce this high cpu peak and provide any further information, then we could work on solving the problem or troubleshooting further.