yee6
This commit is contained in:
@ -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<System::String^>^ args)
|
||||
|
Reference in New Issue
Block a user