What causes 2007 Nissan Altima engine surge?

what is the cause of engine rpm surging from idle to high rpm then back to idle continuously?

Causes… can be many causes, not just one. Bad throttle body, vacuum leak, cracked air intake hose and more