UNPKG

chance

Version:

Chance - Utility library to generate anything random

14 lines (10 loc) 318 B
# currency_pair ```js // usage chance.currency_pair() ``` Generate a currency pair. Handy for simulating currency conversions. Guaranteed to return a unique pair (and not the same currency twice). ```js chance.currency_pair(); => [{ code: "ALL", name: "Albania Lek" }, { code: "ZWD", name: "Zimbabwe Dollar" }] ```