View Source Faker.Currency (Faker v0.19.0-alpha.1)

Functions for generating currency related data

Summary

Functions

Returns a random currency code

Returns a random currency symbol

Functions

code()

@spec code() :: String.t()

Returns a random currency code

Examples

iex> Faker.Currency.code()
"WST"
iex> Faker.Currency.code()
"UYU"
iex> Faker.Currency.code()
"CRC"
iex> Faker.Currency.code()
"DOP"

symbol()

@spec symbol() :: String.t()

Returns a random currency symbol

Examples

iex> Faker.Currency.symbol()
"£"
iex> Faker.Currency.symbol()
"฿"
iex> Faker.Currency.symbol()
"ƒ"
iex> Faker.Currency.symbol()
"Rp"