|
@@ -1,6 +1,7 @@
|
|
|
package com.ruoyi;
|
|
|
|
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
|
+import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
|
@@ -14,7 +15,7 @@ import java.util.Random;
|
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
|
|
@MapperScan("mapper")
|
|
|
public class RuoYiApplication {
|
|
|
- /*public static void main(String[] args) {
|
|
|
+ public static void main(String[] args) {
|
|
|
// System.setProperty("spring.devtools.restart.enabled", "false");
|
|
|
SpringApplication.run(RuoYiApplication.class, args);
|
|
|
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" +
|
|
@@ -27,37 +28,7 @@ public class RuoYiApplication {
|
|
|
" | | \\ `' /| `-' / \n" +
|
|
|
" | | \\ / \\ / \n" +
|
|
|
" ''-' `'-' `-..-' ");
|
|
|
- }*/
|
|
|
+ }
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- String[] numbers = {"愤怒巨刃", "魅影忍刀", "神速长裤", "愤怒之兜", "愤怒戒指"};
|
|
|
- int f1 = 0;
|
|
|
- int m1 = 0;
|
|
|
- int s1 = 0;
|
|
|
- int f2 = 0;
|
|
|
- int f3 = 0;
|
|
|
- for (int i = 0; i < 100; i++) {
|
|
|
- int randomIndex = new Random().nextInt(numbers.length);
|
|
|
- String randomNumber = numbers[randomIndex];
|
|
|
- if ("愤怒巨刃".equals(randomNumber)) {
|
|
|
- f1 = f1 + 1;
|
|
|
- } else if ("魅影忍刀".equals(randomNumber)) {
|
|
|
- m1 = m1 + 1;
|
|
|
- } else if ("神速长裤".equals(randomNumber)) {
|
|
|
- s1 = s1 + 1;
|
|
|
- } else if ("愤怒之兜".equals(randomNumber)) {
|
|
|
- f2 = f2 + 1;
|
|
|
- } else {
|
|
|
- f3 = f3 + 1;
|
|
|
- }
|
|
|
- }
|
|
|
- System.out.println("愤怒巨刃:" + f1);
|
|
|
- System.out.println("魅影忍刀:" + m1);
|
|
|
- System.out.println("神速长裤:" + s1);
|
|
|
- System.out.println("愤怒之兜:" + f2);
|
|
|
- System.out.println("愤怒戒指:" + f3);
|
|
|
|
|
|
- /*int randomNumber = ThreadLocalRandom.current().nextInt(1, 11);
|
|
|
- System.out.println(randomNumber);*/
|
|
|
- }
|
|
|
}
|