AI hallucinations are basically randomized thoughts?

I don’t understand, could you please elaborate