summaryrefslogtreecommitdiff
path: root/js/utility.js
diff options
context:
space:
mode:
authorLi Zhineng <[email protected]>2013-06-07 17:44:47 +0800
committerLi Zhineng <[email protected]>2013-06-07 17:44:47 +0800
commitc080e07ee1a0004d732508f9ed011678a38eda5e (patch)
tree056707266c62dca43ba90de7148c8722628c3d16 /js/utility.js
parentcf75ddf153d4fbddd9ae8a517a9c6121e995972b (diff)
downloadword-search-game-c080e07ee1a0004d732508f9ed011678a38eda5e.tar.gz
word-search-game-c080e07ee1a0004d732508f9ed011678a38eda5e.zip
First commit
Diffstat (limited to 'js/utility.js')
-rw-r--r--js/utility.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/utility.js b/js/utility.js
new file mode 100644
index 0000000..ab67cd2
--- /dev/null
+++ b/js/utility.js
@@ -0,0 +1,3 @@
+function range(min, max) {
+ return Math.floor(Math.random() * (max - min + 1)) + min;
+} \ No newline at end of file