Skip to content

Commit

Permalink
Update how-to-use-random.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XHXIAIEIN authored Nov 5, 2024
1 parent 6628fae commit d5fb90f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions notes/how-to-use-random.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,10 @@ start + floor(random((floor((end - start) / step) + 1))) * step
2 7 12 17 22 27 32
```

## Example 7

[Eerp](https://x.com/FreyaHolmer/status/1813629237187817600)
适合用在设置音频播放速度,让随机数集中在偏高的音调,也就是更多集中在头部,尾部逐渐减弱
```
a * exp(random(1) * ln(b / a))
```

0 comments on commit d5fb90f

Please sign in to comment.