mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-06-05 11:11:48 +08:00
update
This commit is contained in:
29
node_modules/chance/docs/location/depth.md
generated
vendored
Normal file
29
node_modules/chance/docs/location/depth.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# depth
|
||||
|
||||
```js
|
||||
// usage
|
||||
chance.depth()
|
||||
chance.depth({ fixed: 2 })
|
||||
chance.depth({ min: -1000 })
|
||||
```
|
||||
|
||||
Generate a random depth, in meters. Depths are always negative
|
||||
|
||||
```js
|
||||
chance.depth()
|
||||
=> -2126.95039
|
||||
```
|
||||
|
||||
By default, includes 5 digits of accuracy after the decimal. Can override with the `fixed` option.
|
||||
|
||||
```js
|
||||
chance.depth({ fixed: 2 })
|
||||
=> -1542.11
|
||||
```
|
||||
|
||||
By default, maximum (or minimum depending on your frame of reference) depth of -2550 (depth of the Mariana Trench), but this can be overridden with the `min` option.
|
||||
|
||||
```js
|
||||
chance.depth({ min: -1000 })
|
||||
=> -718.41976
|
||||
```
|
||||
Reference in New Issue
Block a user