summaryrefslogtreecommitdiff
path: root/src/node_modules/chance/docs/music/tempo.md
blob: 8e0cc275f0ed9ba83c6d23fab4e9646b5643f429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# tempo

```js
// usage
chance.tempo(); //default between 40 to 320
chance.tempo({ min: 60, max: 120 });
```

Return a tempo. 🎵

```js
chance.tempo();
=> 58

chance.tempo();
=> 281

chance.tempo({ max: 80 });
=> 45

chance.tempo({ min: 120 });
=> 172

```