mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 05:48:44 +00:00
36 lines
431 B
C++
36 lines
431 B
C++
/*++
|
|
Copyright (c) 2006 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
random.cpp
|
|
|
|
Abstract:
|
|
|
|
<abstract>
|
|
|
|
Author:
|
|
|
|
Leonardo de Moura (leonardo) 2007-08-24.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "util/util.h"
|
|
#include "util/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();
|
|
}
|
|
|
|
|