diff --git a/Git_Practice/Git_Practice.cpp b/Git_Practice/Git_Practice.cpp index 1fdef94..8bfde90 100755 --- a/Git_Practice/Git_Practice.cpp +++ b/Git_Practice/Git_Practice.cpp @@ -4,6 +4,16 @@ using namespace System; bool Guess(int number) { + static int target = -1; + + if (target == -1) + { + Random r; + target = r.Next() % 100 + 1; + } + + if (number == target)return true; + return false; } int main(array^ args)