6 lines
136 B
TypeScript
6 lines
136 B
TypeScript
|
export const wordLength = 5;
|
||
|
|
||
|
export function pick<T>(array: Array<T>): T {
|
||
|
return array[Math.floor(array.length * Math.random())];
|
||
|
}
|