code/modules/jobs/job_types/security_officer.dm

/proc/get_officer_departments | Returns the distribution of splitting the given security officers into departments. Return value is an assoc list of candidate => SEC_DEPT_*. |
---|---|
/proc/get_distribution | This is a pretty complicated algorithm, but it's one I'm rather proud of. |