mirror of https://github.com/shuang854/Turtle
created random name generator
parent
9fb6678656
commit
4c5ccc0afb
@ -0,0 +1,51 @@
|
|||||||
|
const adjectives = [
|
||||||
|
'Adamant',
|
||||||
|
'Instinctive',
|
||||||
|
'Actually',
|
||||||
|
'Husky',
|
||||||
|
'Bent',
|
||||||
|
'Fascinated',
|
||||||
|
'Sexual',
|
||||||
|
'Mute',
|
||||||
|
'Silent',
|
||||||
|
'Coherent',
|
||||||
|
'Juvenile',
|
||||||
|
'Naughty',
|
||||||
|
'Foreign',
|
||||||
|
'Earthy',
|
||||||
|
'Diligent',
|
||||||
|
'Anxious',
|
||||||
|
'Adorable',
|
||||||
|
'Quack',
|
||||||
|
'Unequal',
|
||||||
|
'Sharp',
|
||||||
|
];
|
||||||
|
|
||||||
|
const animals = [
|
||||||
|
'Chimpanzee',
|
||||||
|
'Bison',
|
||||||
|
'Squirrel',
|
||||||
|
'Lemur',
|
||||||
|
'Wolf',
|
||||||
|
'Dingo',
|
||||||
|
'Colt',
|
||||||
|
'Seal',
|
||||||
|
'Cougar',
|
||||||
|
'Ram',
|
||||||
|
'Parakeet',
|
||||||
|
'Goat',
|
||||||
|
'Ape',
|
||||||
|
'Basilisk',
|
||||||
|
'Oryx',
|
||||||
|
'Iguana',
|
||||||
|
'Stallion',
|
||||||
|
'Jackal',
|
||||||
|
'Snake',
|
||||||
|
'Zebra',
|
||||||
|
];
|
||||||
|
|
||||||
|
export const generateAnonName = (): string => {
|
||||||
|
const adj: string = adjectives[Math.floor(Math.random() * 20)];
|
||||||
|
const animal: string = animals[Math.floor(Math.random() * 20)];
|
||||||
|
return adj + ' ' + animal;
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue