优化代码

This commit is contained in:
RuoYi
2025-04-15 17:01:28 +08:00
parent 9c9567a5e7
commit 922a9a5726
6 changed files with 14 additions and 11 deletions

View File

@@ -21,7 +21,7 @@ public class KaptchaTextCreator extends DefaultTextCreator
int x = random.nextInt(10);
int y = random.nextInt(10);
StringBuilder suChinese = new StringBuilder();
int randomoperands = (int) Math.round(Math.random() * 2);
int randomoperands = random.nextInt(3);
if (randomoperands == 0)
{
result = x * y;