Beyond Binary: 2D Magnetic Devices Enable Brain-Like Probabi