how to create a random 2d vector in js code example Example: how to create a random 2d vector in js let vector = p5.Vector.random2D();