Skip to content

Finance

It generates various random financial data.

Example

Credit card

;; Generate a random credit card number
(def random-cc (random-credit-card))
(println "Random Credit Card Number:" random-cc)

Currency symbol

;; Generate a random currency symbol
(def random-currency (random-currency-symbol))
(println "Random Currency Symbol:" random-currency)

IBAN

;; Generate a random IBAN
(def random-iban-number (random-iban))
(println "Random IBAN:" random-iban-number)

PIN

;; Generate a random PIN
(def random-pin-number (random-pin))
(println "Random PIN:" random-pin-number)
(def random-pin-6-digit (random-pin 6))
(println "Random 6-digit PIN:" random-pin-6-digit)

Invoice

;; Generate a random invoice with default currency
(def random-invoice-data (random-invoice))
(println "Random Invoice:" random-invoice-data)
;; Generate a random invoice with specified currency
(def random-invoice-eur (random-invoice :EUR))
(println "Random Invoice (EUR):" random-invoice-eur)

Invoice list

;; Generate multiple random invoices
(def random-invoices-list (random-invoices 5))
(println "Random Invoices:" random-invoices-list)