An AI takes millions of inputs and rehashes them into something semi-new. The same thing human brain does when sleeping. Humans call it "dreams".
Off the Record
A Fantastic Back and Forth
The Land Before Time VII: The Stone of Cold Fire
Secret of the Wings