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