method:nextLong ();return type:longcontent:ใช้สุ่มเลขexample:Random rnd = new Random (); long random_long = rnd.nextLong ();