What's up with M$'s Random library under .NET?

K.I.L.E.R

Retarded moron
Veteran
It's not very random.

Multiple objects ended up having the same 'random' stats. :LOL:

I ended up having to create my own random number library. :rolleyes:

NM, it's fixed.

I had to make the Random variable a class variable for it to work. :LOL:

Never had to do this in Java.

Sun's random number library > M$'s random number library.

EDIT:EDIT:
It's stick fucking doing it.
Very rarely is it actually 'random'.

FU M$. o_O
Now I have to recreate my random number lib.

1/5 chance that the 2 objects have different stats. o_O :rolleyes:
 
OFN!!! I forgot to read the documentation. :LOL:

Thanks guys. Next time the first thing I will do is RTFM. :LOL:
 
And btw I've not seen a built-in default random number generator library that has been especially good (most them are algorithms with speed in mind not having a huge stretch of non-repeats). So if you start filling up a 2d or 3d array with random numbers don't be surprised that you need to use another algorithm. (heh try drawing like a 512x512 texture with random numbers from any of the default libraries and you will notice some nice repeats).

And writing a random number function isn't exactly that hard if you just look up an algorithm that meets your needs (most simple ones require very few math operations in fact the simpler ones often are the best) or if you are too lazy to do that there is tons of random number libraries out there to give you any distribution you need :p
 
Back
Top