From 24f85cf0ce9e3f9e00a3fabbae795385c34f5068 Mon Sep 17 00:00:00 2001 From: Tovervlag Date: Wed, 12 May 2021 02:31:01 +0200 Subject: [PATCH] Added creditcardnumber.ps1 in generators. --- Generators/creditCardNumber.ps1 | 8 ++++++++ NameIT.psd1 | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Generators/creditCardNumber.ps1 diff --git a/Generators/creditCardNumber.ps1 b/Generators/creditCardNumber.ps1 new file mode 100644 index 0000000..ef414a3 --- /dev/null +++ b/Generators/creditCardNumber.ps1 @@ -0,0 +1,8 @@ +function creditCardNumber { + $Value1 = get-random -Minimum 1000 -maximum 9999 + $Value2 = get-random -Minimum 1000 -maximum 9999 + $Value3 = get-random -Minimum 1000 -maximum 9999 + $Value4 = get-random -Minimum 1000 -maximum 9999 + $creditCardNumber = ("$value1" + ' ' + "$Value2" + ' ' + "$value3" + ' ' + "$value4") + return ($creditCardNumber) +} diff --git a/NameIT.psd1 b/NameIT.psd1 index 390ead9..97f3449 100644 --- a/NameIT.psd1 +++ b/NameIT.psd1 @@ -131,8 +131,9 @@ ,'NextWeek' ,'YearToDate' ,'Job' + ,'creditCardNumber' ) - + CultureNorms = @{ FallbackLang = 'en' CultureRoot = 'cultures'