Get Random HashTable

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:

Random Hashtable

Download the script 

You can download it from here: Get-RandomHash

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s