Is it normal my 18 month olds sleep is so sporadic?

She either sleeps great or …for 2 hours and then is up all night. Either wakes at 4-5am or sleeps in til 10am. Falls asleep easily at 8 or stays up til midnight. I’m honestly at a loss of what to do lol every day is so different