An offensive goal-tending call on a Nastic basket gave Stanford a 65-59 edge with 3:31 left to play and the Trojans never got closer than four the rest of the way.
The Cardinal opened the second half with a 13-4 run to wipe out a six-point halftime deficit. An offensive rebound led to Randle's lean-in jumper with 13:53 remaining that put Stanford ahead.
Marcus Allen's lay-up with 6:28 left in the first half to put Stanford ahead, 27-20. The Trojans outscored the Cardinal 19-6 the rest of the way to take a 39-33 advantage into intermission.