UNPKG
@elastic/makelogs
Version:
latest (6.1.1)
6.1.1
6.1.0
6.0.0
5.0.1
5.0.0
4.5.0
4.4.0
Simple log generator for testing kibana
github.com/elastic/makelogs
elastic/makelogs
@elastic/makelogs
/
samples
/
random_list.js
14 lines
(10 loc)
•
195 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
/** *
@class
RandomList
*/
module
.
exports
=
RandomList
;
function
RandomList
(
list
) {
this
.
get
=
function
(
) {
return
list[
Math
.
floor
(
Math
.
random
() * list.
length
)]; }; }