In this Coding Challenge, I continue the discussion on Random Walkers. I implement a random walker using vectors in p5.js, which allows me to vary the distance of each step size. I also implement a “Lévy Flight”, named after French Mathematician Paul Lévy.

This video is part of my Spring 2017 course Nature of Code at Tisch NYU (

Previous Coding Challenge on a Random Walker:

Support this channel on Patreon:

The Nature of Code on GitHub (Spring 2017 Class):

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Lévy Flight on Wikipedia:
My Videos on Vectors:
Nature of Code Kadenze Course:

Source Code for the all Video Lessons:


For my original Nature of Code videos:
For More Coding Challenges:
For an Intro to Programming using p5.js:

Help us caption & translate this video!