Branch libreoffice-5-0-4
[LibreOffice.git] / include / formula / random.hxx
blobd5d14f54ced92fabeb6d8dbe9e43b7cc0348d94f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_FORMULA_RANDOM_HXX
11 #define INCLUDED_FORMULA_RANDOM_HXX
13 #include <formula/formuladllapi.h>
15 namespace formula
18 namespace rng
21 // These two functions obey the SC_RAND_REPEATABLE environment
22 // variable: If it is set, use a fixed seed.
23 double FORMULA_DLLPUBLIC fRandom(double a, double b);
24 sal_Int32 FORMULA_DLLPUBLIC nRandom(sal_Int32 a, sal_Int32 b);
26 } // rng
27 } // formula
29 #endif // INCLUDED_FORMULA_RANDOM_HXX
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */