Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 02:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Simpler Random Generator

Discussion on Simpler Random Generator within the Nostale forum part of the MMORPGs category.

Closed Thread
 
Old   #1
 
Irelia<3's Avatar
 
elite*gold: 0
Join Date: Sep 2018
Posts: 243
Received Thanks: 59
Post Simpler Random Generator

Code:
using System;

namespace Randomgenerator
{
    class Program
    {
        static void Main()

        {
            Random random = new Random();
            int randomNumber = random.Next(0, 2);
            if (randomNumber == random.Next(randomNumber))
            {
                //GIFTADD
            }
            else
            {
                //YOU LOSE
            }
            Console.ReadKey();
        }
    }
}
Bei bedarf kann man diesen Code ausweiten Erfahrene User wissen das Feature zu Schätzen

Mfg Irelia
Irelia<3 is offline  
Old 06/02/2019, 00:54   #2



 
IceTrailer's Avatar
 
elite*gold: 150
Join Date: Sep 2010
Posts: 2,070
Received Thanks: 821
Sehe den Sinn nicht ganz, warum der Code in der Nostale-Sektion gepostet wurde, bitte

#closed
IceTrailer is offline  
Closed Thread


Similar Threads Similar Threads
[Released] Monster legends (Random Gold) (Random Food) (Random Exp)
02/03/2015 - Facebook - 6 Replies
Monster legends New Tools !! *1 - Random Gold *2 - Random Food *3 - Random Exp All Tested And Working 100% Without Any Problem :handsdown: !!! Link
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold
01/24/2015 - Dragon City - 25 Replies
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold Dragon City Gem + Gold + Food +Exp
Java Color.rgb(random,random,random)
05/19/2014 - Java - 4 Replies
Guten Abend liebe Community, ich habe ein Anliegen. Wie ist es möglich bei der Methode : setTextColor(Color.rgb(0,0,0)); anstatt (0,0,0) 3 random Integer zu verwenden wenn ja wie? Ich habe es mal so probiert: final Random r = new Random();



All times are GMT +1. The time now is 02:43.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.