A man accused of firing 50 bullets at random members of the public in Sydney’s inner west on Sunday has faced court for the first time.