mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-06-02 00:43:43 +08:00
28 lines
531 B
Markdown
28 lines
531 B
Markdown
# radio
|
|
|
|
```js
|
|
// usage
|
|
chance.radio()
|
|
```
|
|
|
|
<p class="pullquote" data-pullquote='Broadcast call signs start with a W if east of the Mississippi River and K if west.' markdown="1"></p>
|
|
|
|
Generate a random radio call sign.
|
|
|
|
```js
|
|
chance.radio();
|
|
=> 'KCXW'
|
|
```
|
|
|
|
Optionally specify a side of the Mississippi River to limit stations to that side.
|
|
|
|
See [K and W](http://en.wikipedia.org/wiki/Call_signs_in_North_America#K_and_W) for more details
|
|
|
|
```js
|
|
chance.radio({side: 'east'});
|
|
=> 'WKOQ'
|
|
|
|
chance.radio({side: 'east'});
|
|
=> 'WNOW'
|
|
```
|