I wrote a simple Excel macro which randomly assigned security personnel to posts they held qualifications for. Since it didn't have any knowledge of personality conflicts or preferences of the troops getting assignments, the results generated by the Rosternator 3000 were generally hated by all involved.
In the end the tool was still useful - the mere threat of a randomized roster was enough to get everyone to quit grumbling.