Skip to content

Commit

Permalink
better random number generator
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonUden committed Mar 16, 2018
1 parent 2338ab2 commit b8c43f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rock paper scissors/gameForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private void btnStart_Click(object sender, EventArgs e)

private void playerReady()
{
Random rand = new Random();
Random rand = new Random(Environment.TickCount);

btnStart.Enabled = true;
btnRock.Enabled = false;
Expand Down

0 comments on commit b8c43f2

Please sign in to comment.