Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
jbilcke-hf
/
ai-clip-factory
like
173
Paused
App
Files
Files
Community
7
abc777c
ai-clip-factory
/
src
/
lib
/
pick.ts
jbilcke-hf
HF staff
initial commit
9a42933
about 1 year ago
raw
Copy download link
history
blame
Safe
88 Bytes
export
const
pick
= (
items:
string
[]
) => items[
Math
.
floor
(
Math
.
random
()*items.
length
)]