fixed flaw in split-name

Split-Name was expecting to pipe data to get-randomarray.  Currently it
cannot accept pipeline input.