Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jbilcke-hf
/
ai-tube
like
281
Running
on
CPU Upgrade
App
Files
Files
Community
9
637b219
ai-tube
/
src
/
lib
/
pick.ts
jbilcke-hf
HF staff
🍿
1f122c3
12 months ago
raw
Copy download link
history
blame
Safe
88 Bytes
export
const
pick
= (
items:
string
[]
) => items[
Math
.
floor
(
Math
.
random
()*items.
length
)]