Skip to content

Commit

Permalink
pr 4, random with 0 args
Browse files Browse the repository at this point in the history
  • Loading branch information
LingDong- committed Sep 14, 2020
1 parent 851c546 commit 011d35c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions q5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,9 @@ function Q5(scope){
rng1.setSeed(seed);
}
$.random = function(a,b){
if (a == undefined){
return rng1.rand();
}
if (typeof a == 'number'){
if (b != undefined){
return rng1.rand()*(b-a)+a;
Expand Down
Loading

0 comments on commit 011d35c

Please sign in to comment.