This happens to me all the time. I like to try to stop thinking when I'm trying to fall asleep, which is really hard because of my ADHD, even when I'm not really thinking about anything (like purposefully thinking about something), a LOT of stuff passes through my mind, completely random stuff too.