Duplicated from jbilcke-hf/LifeSim
da798b4
1
2
3
export const pick = (items: string[]) => items[Math.floor(Math.random()*items.length)]