Skip to content

Commit d8af11a

Browse files
fix(better random)
1 parent aaad5d7 commit d8af11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FunMatchPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ private void InstallFun(FunMatchPluginConfig config)
156156
}
157157
}
158158

159+
private Random rd = new Random();
159160
public void LoadRandomFun()
160161
{
161162
if (CurrentActiceFunIndex >= 0) return;
162-
Random rd = new Random();
163163
CurrentActiceFunIndex = rd.Next(0,FunLists.Count);
164164
FunLists[CurrentActiceFunIndex].Fun(this);
165165
if (DisPlayHelp) FunLists[CurrentActiceFunIndex].DisPlayHelp();

0 commit comments

Comments
 (0)