Sometimes you are testing or piloting some functions or other scripts and you need access to test data to see how your function or script will deal with it.
I usually find my self in need to a test hashtable that should be big in size or sometimes small in size. This is why i want to share my personal test hashtable function.
The function takes one parameter which is the number of items in the hashtable. The function then will return hashtable with the requested size and filled with test data (the test data is city names and their population).
Here is the script function code:
Download the script
You can download it from here: Get-RandomHash