tag:blogger.com,1999:blog-8263949408347549596.post1090567038153344287..comments2023-10-23T23:19:01.111+02:00Comments on Object-Oriented Software Development: Generating random sequences with LINQWiktor Zychlahttp://www.blogger.com/profile/04420514974154487039noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8263949408347549596.post-25602445222834069682010-12-14T09:25:56.322+01:002010-12-14T09:25:56.322+01:00order by guid.newguid.tostringorder by guid.newguid.tostringAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8263949408347549596.post-5519440774583551062009-01-23T09:21:00.000+01:002009-01-23T09:21:00.000+01:00there's an interesting and quite obvious proposal ...there's an interesting and quite obvious proposal on:<BR/><BR/>http://www.linqexchange.com/post/2008/07/How-to-Generate-a-Random-Sequence-with-LINQ.aspx<BR/><BR/>where Guid.NewGuid() is used to order sequences.<BR/><BR/>nice trick to remember!Wiktor Zychlahttps://www.blogger.com/profile/04420514974154487039noreply@blogger.comtag:blogger.com,1999:blog-8263949408347549596.post-59246613246744764192008-07-19T22:19:00.000+02:002008-07-19T22:19:00.000+02:00I believe this is not random, more like modulo by ...I believe this is not random, more like modulo by range-max.<BR/>It it not equal to:<BR/><BR/>int nConst = (new Random()).Next()<BR/><BR/>var sequence = Enumerable.Range( 1, 500 ).OrderBy( n => n * n * nConst );<BR/><BR/>?Anonymousnoreply@blogger.com