Randomness & Statistics in Code

Programming for ML with no experience — if you can type, you can begin

A computer cannot roll a die. Every value it hands you comes out of ordinary arithmetic, run on whatever number it started from, so calling the result "random" is really a kind of pretending, and a very good one. NumPy's np.random is where that pretending lives. The useful part is that the pretending is a recipe: run the same recipe from the same starting point and the same numbers come back, every single time.

🔒 This is a Pro lesson — the interactive figure, worked examples, quiz and practice open with Pro access.

▶ Randomness & Statistics in Code
← Vectors & Matrices in CodeReading Plots in Code →