Use get.rand instead.

This commit is contained in:
Tipx-L 2023-08-09 11:20:06 -07:00
parent 1b4ac04fba
commit c1426af864
1 changed files with 2 additions and 2 deletions

View File

@ -11121,7 +11121,7 @@
node_pos=mapping.shift();
}
else if(mapping=='random'){
abs=Math.floor(Math.random()*number_of_tracks);
abs=get.rand(number_of_tracks);
node_pos=abs;
}
var combo=0;
@ -11228,7 +11228,7 @@
}
else if(mapping=='random'){
while(node_pos==abs){
node_pos=Math.floor(Math.random()*number_of_tracks);
node_pos=get.rand(number_of_tracks);
}
abs=node_pos;
}