Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Its relatively easy to randomly pull items from one array and place them in another. The hard part is making sure that you don't pull the same item twice. To accomplish this, you will effectively shrink the array each time an item is pulled from it. To do this when you pull an item from the array you will sawp the item witht eh item at the "effective" end of the array and then shrink the "effective" size of the array by 1 so the item is no longer in the effective array.
code sample follows.