Added random.js shape; randomly picks directions.