Quang Dinh Luong

Quang Dinh Luong

  • NA
  • 76
  • 18.6k

ERROR in creating a random number

Oct 9 2015 1:35 PM
 I'm facing this problem : Argument 1: cannot convert from "long" to "int"
 
Random startGenerate = new Random();
//Create a number between 1000000000000000000 and 9223372036854775807
Int64 value = startGenerate.Next(1000000000000000000, 9223372036854775807);
 
I don't understand this error, anyone can help?
Thanks, 

Answers (6)