diff --git a/make/strings.js b/make/strings.js index d027427..dfcdff5 100644 --- a/make/strings.js +++ b/make/strings.js @@ -28,4 +28,11 @@ make.strings = { return s; }, + digitsHex: function (n) { + let s = ''; + while (n-- > 0) { + s += (Random.number(16)).toString(16); + } + return s; + }, } diff --git a/make/types.js b/make/types.js new file mode 100644 index 0000000..6e2c2bf --- /dev/null +++ b/make/types.js @@ -0,0 +1,14 @@ +make.types = { + random: function() { + return random.item([ + "true", + "null", + "(new Object())", + "undefined", + "{}", + "[]", + "''", + "function() {}" + ]); + } +}