Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
jbilcke-hf
/
ai-bedtime-story
like
88
Paused
App
Files
Files
Community
5
c1e4aec
ai-bedtime-story
/
src
/
lib
/
pick.ts
jbilcke-hf
HF staff
initial commit π
fecef05
12 months ago
raw
Copy download link
history
blame
Safe
88 Bytes
export
const
pick
= (
items:
string
[]
) => items[
Math
.
floor
(
Math
.
random
()*items.
length
)]