Picking stock names "out of a hat"

Does anyone know of any algorithms which can pick random stock names?