UNPKG
anime-photos
Version:
latest (1.0.3)
1.0.3
1.0.0
Random Anime Photos And Easy To Use
anime-photos
/
index.js
11 lines
(7 loc)
•
201 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
function
getRandomAnime
(
) {
const
imgs =
require
(
"./imgs.json"
)
let
r = imgs.
photos
let
rr = r[
Math
.
floor
(
Math
.
random
() * r.
length
)]
return
rr }
module
.
exports
.
getRandomAnime
= getRandomAnime;