The problem is how do you define close to uniform? All I remember my signals & noise classes is that this really hard, and Zed Shaw's rant has convinced me that in order to do this right it takes time.
I'm going to punt on the issue for now. Quick, is there a statistician in the house? Sean PS - I'm finding some interesting things testing seq-utils. I'll post my findings when I'm done. I would LOVE to get your feedback Stuart. On Aug 7, 9:35 pm, Stuart Sierra <the.stuart.sie...@gmail.com> wrote: > Generally, if you're testing something that is supposed to be truly > random (like shuffle and rand-elt), you do a large sample and make > sure the distribution of results is truly (close to) uniform. > > -SS > > On Aug 7, 9:17 pm, Sean Devlin <francoisdev...@gmail.com> wrote: > > > > > Ok, I need some help. I'm writing some tests for c.c.seq-utils, and I > > ran into a problem defining a test for both shuffle and rand-elt. > > > Does anyone here have any experience writing tests for random > > functions? Am I going to need to use serious statistics the answer > > this? > > > Ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---