diff --git a/pages/tools/text/lorem-ipsum-generator.vue b/pages/tools/text/lorem-ipsum-generator.vue new file mode 100644 index 00000000..a5d81fc5 --- /dev/null +++ b/pages/tools/text/lorem-ipsum-generator.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/utils/random.ts b/utils/random.ts new file mode 100644 index 00000000..d21122f4 --- /dev/null +++ b/utils/random.ts @@ -0,0 +1,8 @@ +const randFromArray = (array: any[]) => array[Math.floor(Math.random() * array.length)] + +const randIntFromInterval = (min: number, max: number) => Math.floor(Math.random() * (max - min) + min) + +export { + randFromArray, + randIntFromInterval +}