Chapter 0 of The Nature of Code, Randomness, builds a random walker and shows that its behavior is set by the probability distribution its steps are drawn from. Here the step length is drawn from real earthquake magnitudes rather than a chosen distribution.

USGS weekly magnitudes already have that heavy tail, so I use them as the walker’s step lengths instead of sampling a synthetic Levy distribution.

Earthquake magnitudes follow the Gutenberg-Richter law: the number of events falls exponentially with magnitude, and radiated energy grows exponentially. The walker’s step length is \(\ell = 3\cdot 10^{\,M-2.5}\) (clamped for the canvas), so most steps are short and rare large quakes produce long jumps. That heavy-tailed step distribution is a Levy flight in length, the non-Gaussian case Chapter 0 contrasts with uniform and normal walks.

The Gutenberg-Richter law is \(\log_{10} N = a - bM\), where \(N\) is the number of events of magnitude at least \(M\) and \(b \approx 1\); radiated seismic energy scales as \(E \propto 10^{1.5M}\). Each move advances along a persistent heading that wanders by a small Gaussian nudge, \(\mathbf{x}_{t+1} = \mathbf{x}_t + \ell\,(\cos\theta_t, \sin\theta_t)\) with \(\theta_{t+1} = \theta_t + \varepsilon_t\), \(\varepsilon_t \sim \mathcal{N}(0,\sigma^2)\). The Levy character is in the step lengths, not in independent uniform headings each frame.

Data source: USGS Earthquake Hazards Program
Endpoint: https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.geojson
Access: Public, no key. Loaded from an hourly server-side refresh when possible, with a bundled snapshot fallback, and a live browser fetch only when the API allows CORS. Data window: Nov 9, 2026 - Nov 16, 2026 (pulled Nov 16, 2026 UTC)

Latest data pull 294 rows
Nov 9, 2026 - Nov 16, 2026 (pulled Nov 16, 2026 UTC)
Hours ago
Longitude
Latitude
Magnitude
2.97
-166.26
53.29
3.7
4.65
179.18
51.02
3.9
4.72
-75.42
-14.84
4.8
4.83
-76.03
-15.03
5.4
5.41
-104.98
37.06
2.8
7.07
-126.1
41.15
3.2
7.57
129.63
26.85
4.6
7.6
50.74
13.47
4.8
7.69
155.92
49.98
4.5
8.51
-153.2
59.99
3.7
8.7
-139.04
59.47
2.8
10.75
-151.43
59.98
2.6
13.87
125.43
4.78
5
13.97
130
-5.81
4.3
14.32
-68.57
-13.61
4.3
14.56
-155.57
61.53
2.7
15.83
-150.8
63.52
2.5
16.55
-149.79
62.26
2.5
16.71
136.74
37.37
5.4
17.97
-98.93
28.81
2.5
18
-149.26
55.83
3.6
19.96
-97.93
16.28
4.4
21
-150.8
61.49
2.7
21.43
-155.49
19.19
2.5
22.04
-66.37
-22.55
4.4
22.47
160.49
52.49
4.8
23.29
-149.72
61.39
2.7
23.49
70.92
36.47
4.9
24.1
-156.99
56.76
2.5
24.24
128.75
-5.94
5
24.96
-156.4
58.32
2.6
25.14
-119.05
39.31
3.1
25.31
-153.54
57.31
2.5
25.46
126.27
4.95
4.4
26.24
-69.77
-17.53
4.2
26.68
-156.38
55.48
2.6
27.3
70.95
36.09
5
27.88
-149.46
62.2
3.5
29
130.32
-6.09
4.2
29.23
-67.85
19.47
3.4
29.42
122.13
1.75
5.1
29.68
-150.84
64.97
2.5
30.57
94.72
19.98
4.4
30.61
-106.81
36.26
3
30.77
-148.19
62.97
2.6
30.81
126.35
9.69
4.6
31.42
126.2
9.76
5.5
31.7
-144.28
67.24
3.4
31.83
-119.05
39.31
2.5
32.25
-156.28
56.33
2.6
33.62
-98.04
35.61
3.1
33.71
-70.31
-20.61
4.1
34.62
-72.22
-33.03
4.1
35.69
120.66
-8.68
4.4
35.8
-153.1
59.8
2.7
36.27
179.81
-23.97
4.4
36.29
-115.42
43.4
2.5
36.86
-153.04
59.39
2.5
37.5
-175.94
-20.59
4.7
38.09
-64.98
19.21
3.7
39.2
-150.94
63.05
2.5
39.85
-147.8
60.07
3.9
39.86
-177.82
-19.56
5.5
40.47
-67.9
-23.53
4.3
40.57
-98.05
35.61
3.4
40.71
-67.07
-23.45
4.4
41.11
-68.68
-31.32
4.8
41.21
-68.98
-21.26
4.3
42.06
179.3
50.91
4.2
42.08
-83.02
8.61
4.3
42.7
-103.8
32.01
3
42.82
-80.01
-44.36
4.3
43.44
-111.65
41.19
3.4
43.67
-67.81
19.16
3.1
45.74
-125.65
42.07
3.4
46.71
-99.11
3.73
4.7
47.1
-147.39
60.01
3.5
47.7
120.44
-8.38
4.5
48.43
-66.93
18.6
2.9
49.25
-119.3
40.76
3
51.04
-63.65
-22.24
4.7
51.25
176.36
-40.03
4.3
52.16
126.61
5.6
4.6
52.5
-66.9
-24.05
4.6
52.86
-67.38
17.99
2.5
53.04
126.21
8.4
4.9
53.53
-115.46
32.82
2.7
53.55
-115.46
32.82
2.9
55.68
-169.24
52.04
3.9
55.82
-178.34
-33
4.9
56.64
160.3
52.36
4.5
57.88
-115.45
32.8
3
57.88
-115.46
32.81
2.6
57.89
-115.46
32.81
3
57.95
-115.46
32.81
3
58.02
-115.46
32.81
2.7
59.67
-42.63
30.12
5.5
59.97
-66.78
18.75
2.7
60.61
-119.92
48.49
3.4
61.46
-67.26
19.51
3.6
61.69
136.95
30.08
4.1
61.75
-148.53
59.85
2.7
61.79
-139.88
60.49
2.7
62.07
-173.45
-15.09
4.6
62.14
-151.74
63.33
2.8
62.23
147.36
9.7
5.2
62.55
-97.96
-36.46
4.8
62.91
-153.33
55.32
3.2
64.12
76.39
34.36
4
64.12
139.67
-50.37
4.5
65.06
-151.53
61.89
2.5
65.8
-66.76
-23.94
4.7
66.12
92.83
3.3
5.2
66.76
-177.74
-19.58
4.5
68.09
-98.38
28.53
2.7
68.67
-104.45
31.66
2.9
69.14
126.67
7.85
4.5
69.19
-74.72
-37.92
4.6
69.6
149.92
-1.5
5.1
69.67
-151.05
58.37
4.1
69.73
130.48
29.56
4.6
70.01
-156.67
56.46
2.6
70.93
-178.64
-32.75
4.9
71.68
-104.44
31.67
3.4
71.78
-89.46
13.22
4.6
73
-144.02
69.51
3
73.08
-75.68
3.91
4.4
73.29
149.96
-1.47
4.8
73.39
-75.56
3.68
4.5
73.96
-148.71
62.38
2.5
74.04
-25.73
-58.96
5.1
74.18
178.92
-23.18
4.9
74.49
-152.86
59.42
3.2
76.18
-159.58
55.11
3.4
76.39
-75.88
-14.99
5.8
76.51
-69.05
18.53
4.8
76.81
83.67
42.17
5.2
77.53
-115.3
38.98
3.4
77.93
-115.25
38.9
3.6
78.9
-97.98
-36.44
5.2
80.48
-74.61
-10.53
4.4
80.89
126.69
7.4
4.4
81.8
-175.85
-21.3
4.8
81.99
-156.33
56.03
2.6
82.19
-75.33
-4.52
4.5
82.57
-74.28
-9.13
4.4
82.82
68.39
36.2
4.4
82.98
70.24
36.06
4.1
83.18
173.45
-22.37
4.9
83.21
-104.47
31.65
2.5
83.32
-151.12
60.65
3.3
83.43
127.2
8.21
4.6
85.08
-81.49
7.78
4.6
85.18
131.13
-3.65
4.4
88.28
116.75
-8.26
4.7
89.64
-161.58
54.39
3.5
89.92
-67.26
-24.21
4.2
90.19
145.6
18.89
4.9
90.67
-178.05
-17.94
4.5
90.91
-118.23
33.68
2.5
91.37
-67.22
-24.18
4.3
91.49
-66.1
19.36
3.4
91.9
22.68
-6.94
5
92.02
-155.46
19.41
2.5
93.02
24.88
34.7
5.1
93.33
-128.98
44.09
3.5
95.04
149.89
-1.59
5.8
95.21
-17.6
64.65
4.6
95.84
139.8
-51.5
4.9
95.95
139.59
-51.43
5.1
97.05
104.19
27.22
4.9
97.43
-121.64
36.89
2.6
97.8
-156.79
67.39
3.4
99.79
-109.88
41.57
3
100.79
-153.1
60.22
2.5
101.38
-152.07
59.04
3.2
102.13
126.11
1.12
4.5
103.44
178.76
51.31
4.4
103.48
140.42
26.68
4.3
103.65
140.51
35.73
4.5
103.93
-150.88
60.25
2.5
104.27
-155.32
18.84
2.6
105.83
120.99
-8.07
4.7
106.82
-143.64
60.33
2.7
107.77
-98.94
28.87
3.1
108.66
-130.07
50.22
4.1
108.82
-129.62
44.45
4.5
110.86
-152.49
60.4
2.5
110.92
-150.6
60.71
2.5
111.03
-144.74
69.36
2.8
111.3
-145.02
69.33
3.7
111.46
-175.45
51.04
4.1
112.96
-155.02
56.95
2.5
112.98
143.61
40.36
4.8
113.34
-26.03
-59.03
5.4
113.38
-151.17
60.25
3.1
115.8
156.61
50.44
4.8
117.1
-164.81
53.64
4.4
117.11
-164.74
53.53
3.9
118.01
-101.06
32.15
2.5
118.1
87.89
27.87
4.6
118.37
-140.1
60.54
2.6
119.05
-13.35
-7.99
4.9
119.77
-65.73
17.85
2.9
119.85
-92.94
13.8
4.4
120.36
-69.33
-19.68
4.5
120.47
-177.94
-21.35
4.4
120.7
-152.44
56.13
3.3
121.27
-179.85
-23.5
4.5
121.75
-74.21
-41.55
4.9
121.97
-152.49
56.14
3.1
122.41
-70.42
-28.64
3.9
123.47
154.75
-6.33
5.1
123.5
-80.04
7.28
4.4
124.37
-98.94
28.87
2.6
124.66
-151.55
63.3
2.5
125.45
-27.74
-56.02
5.1
126.21
-104.33
31.67
2.5
127.31
-147.39
68.05
2.8
128.36
167.26
-14.5
4.5
128.82
130.78
-3.02
4.7
128.94
130.14
-3.16
4.6
129.49
-69.17
-22.54
5.1
129.52
-64.99
18.73
3
129.57
130.25
-7.94
5.1
130.08
-97.74
16.47
4
130.15
167.97
-17.26
4.6
130.26
-65.1
18.42
2.9
130.89
-66.59
18.54
2.8
131.69
34.72
29.47
4.1
132.3
-135.22
55.9
3.7
132.31
86.55
34.15
4.4
132.49
143.33
12.84
4.7
133.01
-97.75
16.6
4.3
133.46
-150.56
58.53
3.7
134.15
-72.27
-33.25
4.2
134.75
155.02
-62.43
5.1
135.67
149.41
44.39
5
135.91
14.26
38.76
4.6
136.76
-169.69
52.55
4.3
137.16
142.19
36.15
4.6
138.44
-67.3
18.88
2.9
139.35
-127.69
49.09
4.7
139.41
-65.42
18.78
3.1
139.47
-125.32
48.44
2.7
140.09
159.3
53.3
4.2
142.86
119.52
32.66
4.5
142.96
97.36
3.92
4.5
145.2
165.52
-13.93
4.9
147.4
-152.15
62.68
2.9
147.49
148.04
-8.72
5.2
147.5
68.48
-20.75
5.2
148.59
-151.46
60.45
2.7
148.84
-120.47
39.88
2.7
149.23
165.74
-10.9
4.8
149.25
128.7
-0.9
5.1
149.71
-90.82
13.62
4.8
150.2
-90.85
13.56
5.5
150.58
106.94
-6.95
4.7
150.77
-153.23
59.73
2.5
151.06
-151.47
63.12
2.6
151.48
-17.28
64.71
4.7
152.42
-155.81
20.03
2.7
152.6
-153
58.52
2.6
154.03
-170.48
52.31
3.4
155.02
-170.43
52.3
3.4
155.07
-153.07
59.7
2.5
155.45
-156.63
20.16
2.9
155.49
-156.55
20.15
2.6
156.31
-65.24
18.93
3.7
156.54
132.86
-0.49
5
157.39
-117.04
45.26
4.3
158.39
-35.08
34.88
4.8
158.48
-65.51
19.04
2.9
158.49
140.14
34.2
4.7
159.16
-68.52
18.45
3.4
159.77
141.47
36.33
4.9
160.56
-66.2
18.93
3
160.6
165.34
-11.11
4.6
160.88
84.65
-41.73
4.4
161.48
165.62
-10.78
5.2
161.94
-136.45
66.22
3.1
162.85
-65
18.89
3.1
163.11
65.29
86.72
4.9
163.22
130.29
-7.87
5.4
163.24
-68.79
19.43
3
163.28
-155.37
19.19
2.6
163.4
-156.22
62.98
2.9
164.92
138.62
-2.39
4.5
165.35
-177.38
-24.57
4.9
165.44
-23.87
-56.75
4.9
166.16
-115.31
38.93
2.8
167.06
171.65
52.8
4.7
168
123.98
-8.61
4.3

All 294 earthquakes are listed below.