# Number Grid Generator

This PHP Script will generate a number grid for elementary school students. Number grids help students with addition and subtraction facts, and also to recognize patterns in decimal numbers:

View an Example Grid

Select your desired options below and click on the Generate button. You can then use your browser to "Save as HTML Source" and use the generated page on your site.

Starting Number:

Ending Number:

Percentage to Fill:

Game Type:

View the PHP Source Code for this page.

Please Note: Generated Code and PHP Source Code are copyright © 2003, Paul Burney. All Rights Reserved. You are granted the right to use this code for non-profit or educational purposes only.

10000) { \$start = 1; } if (\$end < 1 || \$end > 10000) { \$end = 100; } if (\$fill_percentage < 1 || \$fill_percentage > 99) { \$fill_percentage = 55; } if (\$type != 'onend' && \$type != 'onblur') { \$type = 'onend'; } if (\$end - \$start > 250) { \$end = \$start + 100; } // increment until a multiple of ten while ((\$start % 10) != 0) { \$start--; } while ((\$end % 10) != 0) { \$end++; } // figure out the correct percentage \$filled_in = floor((\$fill_percentage/100)*(\$end - \$start)); // make max filled in be one less than total if (\$filled_in > \$end - \$start) { \$filled_in = \$end - \$start - 1; } ?> Number Grid
'; if ((\$i != 0) && (\$i != 200) && ((\$i+1)%10 == 0)) { echo ''; } } ?>
 Number Grid Instructions: Completely fill in the number grid below. Number Correct: of '; } ?>

Copyright © 2003, Paul Burney. All Rights Reserved.