partey_workadventure/benchmark/socketioLoadTest.js

12 lines
245 B
JavaScript
Raw Normal View History

2020-09-09 12:32:01 +02:00
'use strict';
module.exports = {
setYRandom
};
function setYRandom(context, events, done) {
context.vars.x = (883 + Math.round(Math.random() * 300));
context.vars.y = (270 + Math.round(Math.random() * 300));
return done();
}