Does anybody know a script or plugin to select randomly?

I know something exists in the object utilities tools to select a number of object randomly. Does anybody know an equivalent function that would work in a sub-object mode for splines or meshes?