13#ifndef ARCANE_RANDOM_UNIFORM01_H
14#define ARCANE_RANDOM_UNIFORM01_H
18#include "arcane/utils/FatalErrorException.h"
20#include "arcane/random/RandomGlobal.h"
64template<
class UniformRandomNumberGenerator>
69 typedef Real result_type;
70 static const bool has_fixed_range =
false;
95 Real
rng_val = _apply(_rng,_rng());
96 for(
int x=0;x<100;++x){
118 return (1.0-1.0e-10);
121 static Real
min() {
return 0.0; }
123 static Real
max() {
return 1.0; }
127 static Real _apply(
const base_type& _rng,
typename base_type::result_type
rng_val)
129 return static_cast<Real
>(
rng_val - _rng.min()) /
130 (
static_cast<Real
>(_rng.max()-_rng.min()) +
131 (std::numeric_limits<base_result>::is_integer ? 1.0 : 0.0));
136 typedef typename base_type::result_type base_result;
Lecteur des fichiers de maillage via la bibliothèque LIMA.