代码搜索:Random

找到约 10,000 项符合「Random」的源代码

代码结果 10,000
www.eeworm.com/read/392244/8356281

java games19.java

// interfaces/Games19.java // TIJ4 Chapter Interfaces, Exercise 19, page 342 /* Create a framework using Factory Methods that performs both coin * tossing and dice tossing. */ import java.util.*;
www.eeworm.com/read/174518/9584848

c inet.c

/* Some systems (e.g., SunOS) have header files that erroneously declare * inet_addr(), inet_ntoa() and gethostbyname() as taking no arguments. * This confuses C++. To overcome this, we use our own
www.eeworm.com/read/370596/9592577

java ex28.java

// holding/Ex28.java // TIJ4 Chapter Holding, Exercise 28, page 427 /* Fill a PriorityQueue (using offer()) with Double values created using * java.util.Random, then remove the elements using poll
www.eeworm.com/read/370596/9592623

java ex11(4).java

// containers/Ex11.java // TIJ4 Chapter Containers, Exercise 11, page 829 /* Create a class that contains an Integer that is initialized * to a value between 0 and 100 using java.util.Random. Impl
www.eeworm.com/read/370596/9592643

java compareints.java

// control/CompareInts.java // TIJ4 Chapter Control, Exercise 2, page 139 /* Write a program that generates 25 random int values. For each value, use an * if-else statement to classify it as greate
www.eeworm.com/read/370596/9592659

java compareintsforever.java

// control/CompareIntsForever.java // TIJ4 Chapter Control, Exercise 3, page 139 // Modify exercise 2 wtih infinte while loop. Stop prgram with Ctrl-C import static net.mindview.util.Print.*; im
www.eeworm.com/read/370596/9593045

java ex23(1).java

// arrays/Ex23.java // TIJ4 Chapter Arrays, Exercise 23, page 786 // Create an array of Integer fill it with random int values (using // autoboxing), and sort it into reverse order using a Comparat
www.eeworm.com/read/370596/9593243

java games17.java

// innerclasses/Games17.java // TIJ4 Chapter Innerclasses, Exercise 17, page 364 /* Modify the solution to Exercise 19 from the Interfaces chapter to use * anonymous inner classes. * (Exercise 19
www.eeworm.com/read/370596/9593451

java games19.java

// interfaces/Games19.java // TIJ4 Chapter Interfaces, Exercise 19, page 342 /* Create a framework using Factory Methods that performs both coin * tossing and dice tossing. */ import java.util.*;
www.eeworm.com/read/174006/9612684

txt 10.1.txt

Listing 10.1 Drawing Randomly Sized Rectangles with Random Colors private void Form1_Click(object sender, System.EventArgs e) { Random randNum = new Random( DateTime.Now.Millisecond ); int width =