Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In java, random () is used to generate random integers.
In java, random () is used to generate random integers.
Summarize the different methods of generating random integers in java, and look at the following code: as shown below.

Expand:

Java is an object-oriented programming language, which can write cross-platform application software. Java technology has excellent universality, high efficiency, platform portability and security, and is widely used in PCs, data centers, game consoles, scientific supercomputers, mobile phones and the Internet, and has the largest professional community of developers in the world.

Java is the general name of Java object-oriented programming language (hereinafter referred to as Java language) and Java platform introduced by Sun Microsystems. Java was developed by james gosling and his colleagues and officially launched in 1995. Java, formerly known as Oak, is designed for embedded chips of consumer electronic products in 199 1.