Files
pcg/🎬.js

34 lines
816 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ПроверитьPCG = мир =>
{
var зерно = 666;
var pcg = new мир.PcgRandom(зерно);
var вывод = "зерно: " + 666 + " время: " + new Date();
for (var н = 1; н <= 10; ++н)
{
var вход = н * 10;
var выход = pcg.integer(вход);
вывод += `<li><pre>pcg.integer(${вход}) = ${выход}</pre></li>`;
}
document.body.innerHTML += `<ol>${вывод}</ol>`;
};
// // // //
ЗагрузитьPCG = мир =>
{
var м = мир.модули.модульПоУказателю(УКАЗАТЕЛЬТОГО_МОДУЛЯ);
eval(м.содержимое["/pcg-random.js"]);
мир.PcgRandom = PcgRandom;
};
// // // //
ЗадатьЗаголовок = мир =>
{
document.title = "🚀 PCG";
};