of     1   

Bytecoded
#119512775Thursday, December 05, 2013 12:45 AM GMT

I'm noticing a C# random function pattern where the most common number is 0. Compared to Lua, which will choose a random number, then repeat the same number again and again. I find it surprising, because both languages are descendants of C. What do you think?
MrDoomBringer
Top 100 Poster
#119521026Thursday, December 05, 2013 2:00 AM GMT

C# is a rebuild with just syntax similar to C. Lua uses C as its backend. Regardless, the random system in all three languages are not going to be the same. Remember that computer systems use pseudo-random generators to generate "random" values. As a side note, take a look at Benford's law, which relates how frequency of numbers occurs in a system. Using this analysis has been several high profile crime discoveries. Numeric analysis is fun stuff.
Merely
#119522622Thursday, December 05, 2013 2:18 AM GMT

Merely's eyes dash across the sentences. When they reach the phrase "fun stuff", he nods solemnly. A confirmed MrDoombringer sighting.
DataExhauster
#119523089Thursday, December 05, 2013 2:24 AM GMT

Take it easy there merely Professional Law Breaker
Seranok
#119531471Thursday, December 05, 2013 4:01 AM GMT

Make sure you're re-using the same Random object, otherwise the numbers you generate are less likely to be "random"

    of     1