git-svn-id: svn://ultimatepp.org/upp/trunk@4438 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-01-18 18:23:29 +00:00
parent c831236753
commit 8f03c15616
3 changed files with 28 additions and 0 deletions

15
upptst/Random/Random.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
SeedRandom();
double x = 0;
for(int i = 0; i < 10000000; i++) {
x += Randomf();
// DDUMP(Randomf());
}
DDUMP(x);
}

9
upptst/Random/Random.upp Normal file
View file

@ -0,0 +1,9 @@
uses
Core;
file
Random.cpp;
mainconfig
"" = "SSE2";

4
upptst/Random/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _Random_icpp_init_stub
#define _Random_icpp_init_stub
#include "Core/init"
#endif