Current Folder

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 14:05:59 +01:00
1 parent 8b3382289b
commit cfcada880d
4379 files changed

No files matched your search

-24
View File
@@ -1,24 +0,0 @@
// () ~> HexString
const hexString = () => {
let str = "";
while (Math.random() < 0.95)
str = str + ("00" + (Math.random() * 256 | 0).toString(16)).slice(-2);
return "0x" + str;
}
// () ~> DataTree
const dataTree = () => {
let list = [];
while (Math.random() < 0.8) {
if (Math.random() < 0.8)
list.push(hexString());
else
list.push(dataTree());
}
return list;
}
module.exports = {
hexString,
dataTree
}