Re: Testing a class which utilizes randomness
Mark Levison <[email protected]> Fri, 4 Apr 2014 12:23:49 -0400
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <CA+UdPQ-eH1iP_9sDTr4rPMhHGHMuSmVWxuxZCs1Ophm-1pdjLA@mail.gmail.com> |
> > > > > On Fri, Apr 4, 2014 at 2:29 AM, Nikola Novak <[email protected]>wrote: > >> >> >> Hello! >> >> I'm new to TDD and this group. For practice, I started a simple project >> and now I want to create a list of random strings, but such that no two >> strings are ever the same. >> > > Ever? Is that even possible? > Desirable? - by definition - randomness can and should occasionally duplicate something. Testing a random number generator is very hard. Cheers Mark [image: headshot-square-300x300]<http://www.flickr.com/photos/36331075@N00/9674877046/> *Mark Levison* | 1 (877) 248-8277 | Twitter <https://twitter.com/mlevison> | LinkedIn <http://ca.linkedin.com/in/marklevison> | Facebook<https://www.facebook.com/agilepainrelief> Certified ScrumMaster Training: Vancouver<http://agilepainrelief.com/courses/vancouver> | Edmonton <http://agilepainrelief.com/courses/edmonton> | Ottawa<http://agilepainrelief.com/courses/ottawa> | Montreal <http://agilepainrelief.com/courses/montreal> | Toronto<http://agilepainrelief.com/courses/toronto> Agile Pain Relief Consulting <http://agilepainrelief.com/> | Notes from a Tool User <http://agilepainrelief.com/notesfromatooluser> Proud Sponsor of Agile Tour Gatineau Ottawa <http://goagiletour.ca/> and Agile Coach Camp Canada <http://agilecoachcampcanada.wordpress.com/>