Determinism and indeterminism in modern physics