Advice on giving the ship a random initial velocity (a.k.a. random advice)

Step 1. Click on the > in the upper left part of the screen

Step 2. Click on functions.js in order to open functions.js

Step 3. Add code

The highlighted code in the above image is this:

vx = random(-20,20);
vy = random(-20,20);

Step 4. Click on sketch.js and then click play to run the code!