Yes. according to a presentation attended for my admitted student at one of the UCs, for the capped computer science major, they had adopted lottery system due to the large number of application which were further screened on GPA basis.
UCSD does a lottery for students wanting to change from their current major into CS/CSE.