Save your self some effort and search the forums . Some months ago someone made a python script that generates resistor packs of a set size:
Peter