Lesson Planet
Search educational resources
  • Sign In Try It Free
  • AI Teacher Tools
    • Discover Resources Search reviewed educational resources by keyword, subject, grade, type, and more
    • Curriculum Manager (My Content) Manage saved and uploaded resources and folders To Access the Curriculum Manager Sign In or Join Now
    • Browse Resource Directory Browse educational resources by subject and topic
    • Curriculum Calendar Explore curriculum resources by date
    • Lesson Planning Articles Timely and inspiring teaching ideas that you can apply in your classroom
    • Our Story
    • Frequently Asked Questions
    • Testimonials
    • Contact Us
  • Pricing
  • School Access
    • Your school or district can sign up for Lesson Planet — with no cost to teachers
      Learn More
  • Sign In
  • Try It Free
Looping and Random Numbers Lesson PlanLooping and Random Numbers Lesson Plan
Publisher
Code.org
Resource Details
Curator Rating
Educator Rating
Not yet Rated
Grade
9th - 12th
Subjects
STEM
1 more...
Resource Type
Lesson Plans
Audience
For Teacher Use
Duration
45 mins
Instructional Strategies
Collaborative Learning
1 more...
Technology
Video
Lesson Plan

Looping and Random Numbers

Curated and Reviewed by Lesson Planet
This Looping and Random Numbers lesson plan also includes:
  • CS Principles: Using Loops
  • Join to access all included materials

Repetition, repetition, repetition. Get your class to efficiently repeat a section of code over and over again by introducing looping. Class members learn looping to quickly recreate objects they want to appear more than once in their drawings. They also learn how to use numbers to place objects randomly within a range,and use these new concepts to continue to work on the Under the Sea scene.

6 Views 2 Downloads

Concepts

computer science, computer code, algorithms, javascript, technology resources

Instructional Ideas

  • After individuals finish the prescribed tasks, have them experiment with loops to enhance their drawing
  • Stop the video and instruct pupils to recreate the loops described

Classroom Considerations

  • The lesson plan says the coding activity section should take 30 minutes, but it may take longer
  • Ninth of a series of 10 resources

Pros

  • One of the two assessment questions has individuals troubleshoot a program 
  • The forum link provides some extensions from teachers who have taught the lesson

Cons

  • None

View 3,909 other resources for 9th - 12th Grade STEM

© 1999-2026 Learning Explorer, Inc.
Teacher Lesson Plans, Worksheets and Resources

Sign up for the Lesson Planet Monthly Newsletter

Open Educational Resources (OER)

  • Health
  • Language Arts
  • Languages
  • Math
  • Physical Education
  • Science
  • Social Studies
  • Special Education
  • Visual and Performing Arts
View All Lesson Plans

Discover Resources

  • Our Review Process
  • How it Works
  • How to Search
  • Create a Collection

Manage Curriculum

  • Edit a Collection
  • Assign to Students
  • Manage My Content
Contact Us Site Map Privacy Policy Terms of Use