mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 22:05:45 +00:00
other components
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
e9eab22e5c
commit
68269c43a6
250 changed files with 70871 additions and 0 deletions
35
test/random.cpp
Normal file
35
test/random.cpp
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*++
|
||||
Copyright (c) 2006 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
random.cpp
|
||||
|
||||
Abstract:
|
||||
|
||||
<abstract>
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2007-08-24.
|
||||
|
||||
Revision History:
|
||||
|
||||
--*/
|
||||
|
||||
#include"util.h"
|
||||
#include"trace.h"
|
||||
|
||||
static void tst1() {
|
||||
random_gen r(0);
|
||||
TRACE("random",
|
||||
for (unsigned i = 0; i < 1000; i++) {
|
||||
tout << r() << "\n";
|
||||
});
|
||||
}
|
||||
|
||||
void tst_random() {
|
||||
tst1();
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue