Access Concentration

Is access concentration needed for rebirth into high sensual heavens like Tusita, Nirmāṇarati Heaven, Paranimmitavasavatti Heaven? Is drowsiness a bad last thought? If someone is asleep at the last moments and is dreaming random thoughts and there is a lot of confusion, can they still be reborn in heaven just through the sheer good deeds they have done or do they need some level of concentration(at least the level of nimitta) to have a heavenly rebirth?

When I’m dreaming, I usually dream random thoughts like a madman and I forget about the Dhamma. Will this be bad if this was a last thought moment.