MCPcopy Create free account
hub / github.com/microsoft/SandDance / random

Function random

docs/app/js/sanddance-app.js:69993–69999  ·  view source on GitHub ↗
(out, scale2)

Source from the content-addressed store, hash-verified

69991 return out;
69992}
69993function random(out, scale2) {
69994 scale2 = scale2 || 1.0;
69995 var r = _commonJs.RANDOM() * 2.0 * Math.PI;
69996 out[0] = Math.cos(r) * scale2;
69997 out[1] = Math.sin(r) * scale2;
69998 return out;
69999}
70000function transformMat2(out, a, m) {
70001 var x = a[0], y = a[1];
70002 out[0] = m[0] * x + m[2] * y;

Callers 7

bootstrapCIFunction · 0.70
sampleFunction · 0.70
sampleNormalFunction · 0.70
sampleUniformFunction · 0.70
sanddance-app.jsFile · 0.70
cloudFunction · 0.70
placeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected