Issue 9339 - std.random.uniform for enums

http://d.puremagic.com/issues/show_bug.cgi?id=9339

Additional help with the implementation provided by H. S. Teoh and bearophile.