Hey there! So I wanted to generate a 13 char random number but faced a bunch of errors.
here's the code:
Random rnd = new Random();
long ID = rnd.Next(1398350831807,1498350831807);
the errors:
Error 1 The best overloaded method match for 'System.Random.Next(int, int)' has some invalid arguments
Error 2 Argument 1: cannot convert from 'long' to 'int'
Error 3 Argument 2: cannot convert from 'long' to 'int'
Any help would be appreciated, I'm still a beginner and really need to do this.
Have a nice day!
here's the code:
Random rnd = new Random();
long ID = rnd.Next(1398350831807,1498350831807);
the errors:
Error 1 The best overloaded method match for 'System.Random.Next(int, int)' has some invalid arguments
Error 2 Argument 1: cannot convert from 'long' to 'int'
Error 3 Argument 2: cannot convert from 'long' to 'int'
Any help would be appreciated, I'm still a beginner and really need to do this.
Have a nice day!