Skip to content

Shopping

It generates various random shopping data.

Example

Category

(ns your-app.shopping
(:require [dataimitator.shopping.categories :refer :all]))
;; Generate a random shopping category in English
(def category-en (random-shopping-category))
(println "Random Shopping Category (EN):" category-en)
;; Generate a random shopping category in Arabic
(def category-ar (random-shopping-category :ar))
(println "Random Shopping Category (AR):" category-ar)
;; Generate a random shopping category in German
(def category-de (random-shopping-category :de))
(println "Random Shopping Category (DE):" category-de)
;; Generate a random shopping category in Spanish
(def category-es (random-shopping-category :es))
(println "Random Shopping Category (ES):" category-es)
;; Generate a random shopping category in French
(def category-fr (random-shopping-category :fr))
(println "Random Shopping Category (FR):" category-fr)
;; Generate a random shopping category in Turkish
(def category-tr (random-shopping-category :tr))
(println "Random Shopping Category (TR):" category-tr)

Price

(ns your-app.prices
(:require [dataimitator.shopping.prices :refer :all]))
;; Generate a random price in US Dollars
(def price-usd (random-price))
(println "Random Price (USD):" price-usd)
;; Generate a random price in Euros
(def price-eur (random-price :de))
(println "Random Price (EUR):" price-eur)
;; Generate a random price in Japanese Yen
(def price-jpy (random-price :jp))
(println "Random Price (JPY):" price-jpy)
;; Generate a random price in British Pounds
(def price-gbp (random-price :gb))
(println "Random Price (GBP):" price-gbp)
;; Generate a random price in Turkish Lira
(def price-try (random-price :tr))
(println "Random Price (TRY):" price-try)
;; Generate a random price in Kuwaiti Dinar
(def price-kwd (random-price :kw))
(println "Random Price (KWD):" price-kwd)
;; Generate a random price between 100 and 500 in US Dollars
(def price-range-usd (random-price 100 500 :en))
(println "Random Price in Range (USD):" price-range-usd)
;; Generate a random price between 50 and 200 in Euros
(def price-range-eur (random-price 50 200 :de))
(println "Random Price in Range (EUR):" price-range-eur)

Product

(ns your-app.products
(:require [dataimitator.shopping.products :refer :all]))
;; Generate a random product name in English
(def product-en (random-shopping-product-name))
(println "Random Product (EN):" product-en)
;; Generate a random product name in Arabic
(def product-ar (random-shopping-product-name :ar))
(println "Random Product (AR):" product-ar)
;; Generate a random product name in German
(def product-de (random-shopping-product-name :de))
(println "Random Product (DE):" product-de)
;; Generate a random product name in Spanish
(def product-es (random-shopping-product-name :es))
(println "Random Product (ES):" product-es)
;; Generate a random product name in French
(def product-fr (random-shopping-product-name :fr))
(println "Random Product (FR):" product-fr)
;; Generate a random product name in Turkish
(def product-tr (random-shopping-product-name :tr))
(println "Random Product (TR):" product-tr)