Last active
September 17, 2017 09:04
-
-
Save jabranr/69b5ed5a994ec4a399a79728ef9f8400 to your computer and use it in GitHub Desktop.
(Math) Generate a loop with maximum range
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Increase until a range is met then start again: | |
let range = 10; | |
let x = (x + 1) % range; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment