Random critical point separates brittle and ductile yielding transitions in amorphous materials