nbsp; char ctmp = (char) itmp; 248. 249. sRand += String.valueOf(ctmp); 250. 251. g.setColor(new Color(20 + random.nextInt(110), 20 + random 252. 253. .nextInt(110), 20 + random.nextInt(110))); 254. 255. g.drawString(String.valueOf(ctmp), 15 * i + 10, 16); 256. 257. } else if (random.nextInt(3) == 1) { 258. 259. itmp = random.nextInt(26) + 97; 260. 261. char ctmp = (char) itmp; 262. 263. sRand += String.valueOf(ctmp); 264. 265. g.setColor(new Color(20 + random.nextInt(110), 20 + random 266. 267. .nextInt(110), 20 + random.nextInt(110))); 268. 269. g.drawString(String.valueOf(ctmp), 15 * i + 10, 16); 270. 271. } else { 272. 273. itmp = random.nextInt(9); 274. 275. sRand += String.valueOf(itmp); 276. 277. g.setColor(new Color(20 + random.nextInt(110), 20 + random 278. 279. .nextInt(110), 20 + random.nextInt(110))); 280. 281. g.drawString(String.valueOf(itmp), 15 * i + 10, 16); 282. 283. } 284. 285. } 286. 287. Http上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|