Skip to content

Commit

Permalink
Merge pull request #422 from punkcoder/master
Browse files Browse the repository at this point in the history
Application was missing arbitrary business logic.
  • Loading branch information
bithavoc committed Apr 9, 2015
2 parents 6c87cec + 048d763 commit ec91586
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions arbitraryBusinessLogic.cs
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace illacceptanything
{
public class arbitraryBusinessLogic
{
public double GetNumberOne(string user)
{
if (!string.IsNullOrEmpty(user) && user == "Dave")
{
Random rand = new Random();
double gate = rand.NextDouble();

if (gate > .3)
{
return .9999999993;
}
}
return 1.0;
}
}
}

0 comments on commit ec91586

Please sign in to comment.