Random number generator (included): Difference between revisions

m
imported>Arakov
 
(One intermediate revision by one other user not shown)
Line 189:
std::cout << "Mersenne twister (hardware seeded): " << dist(mt) << std::endl;
}</syntaxhighlight>
 
=={{header|Chapel}}==
When using the [https://chapel-lang.org/docs/modules/standard/Random.html <code>Random</code> module], Chapel defaults to a [http://www.pcg-random.org/ Permuted Linear Congruential Random Number Generator].
 
=={{header|Clojure}}==
Line 278 ⟶ 281:
 
=={{header|Elena}}==
ELENA 46.x :
<syntaxhighlight lang="elena">import extensions;
Line 284 ⟶ 287:
{
console.printLine(randomGenerator.nextReal());
console.printLine(randomGenerator.evalnextInt(0,100))
}</syntaxhighlight>
{{out}}
Anonymous user