|
Lines 271-277
UniformVariable::UniformVariable(double
|
Link Here
|
|---|
|
| 271 |
|
271 |
|
| 272 |
double UniformVariable::GetValue() |
272 |
double UniformVariable::GetValue() |
| 273 |
{ |
273 |
{ |
| 274 |
return Peek()->GetValue(); |
274 |
return RandomVariable::GetValue(); |
| 275 |
} |
275 |
} |
| 276 |
|
276 |
|
| 277 |
double UniformVariable::GetValue(double s, double l) |
277 |
double UniformVariable::GetValue(double s, double l) |
|
Lines 279-284
double UniformVariable::GetValue(double
|
Link Here
|
|---|
|
| 279 |
return ((UniformVariableImpl*)Peek())->GetValue(s,l); |
279 |
return ((UniformVariableImpl*)Peek())->GetValue(s,l); |
| 280 |
} |
280 |
} |
| 281 |
|
281 |
|
|
|
282 |
uint32_t UniformVariable::GetInteger (uint32_t s, uint32_t l) |
| 283 |
{ |
| 284 |
NS_ASSERT(s <= l); |
| 285 |
return static_cast<uint32_t>( GetValue(s, l+1) ); |
| 286 |
} |
| 282 |
|
287 |
|
| 283 |
//----------------------------------------------------------------------------- |
288 |
//----------------------------------------------------------------------------- |
| 284 |
//----------------------------------------------------------------------------- |
289 |
//----------------------------------------------------------------------------- |