Hallo alle!
Hab mich mal an Tetris versucht und es hat auch super geklappt, allerdings ist der Farbengenerator irgendwie fürn Arsch :/
Könnt ihr bitte mal testen ob das bei euch auch so ist?
Benutzt habe ich diesen Algorythmus
Code
static int RandomNummer(int min, int max)
{
RNGCryptoServiceProvider c = new RNGCryptoServiceProvider();
byte[] randomNumber = new byte[4];
c.GetBytes(randomNumber);
int result = Math.Abs(BitConverter.ToInt32(randomNumber, 0));
return result % max + min;
}
Kleines Bild
und der Download
File-Upload.net - Tetris.exe
Virus Scann