Very very minor nitpick/addendum to your point. Some languages let you swap out the rand function for a secure implementation. In those cases its important to make sure that that mechanism is actually in place.
In Perl for example:
http://search.cpan.org/~mkanat/Math-Random-Secure-0.06/lib/M...