Sleeping Beauty problem: Difference between revisions

m
(Added Oberon-07)
Line 694:
{{Trans|Wren}}
{{works with|Oberonc_(Oberon-07_compiler_for_the_JVM)}}
For this task we need random numbers, we first define a DEFINITION module that will allow Oberon-07 code compiled with [[Oberonc_(Oberon-07_compiler_for_the_JVM)|oberonc]] to call methods in a [[Java]] class to obtain random integers:
<syntaxhighlight lang="modula2">
(* Random numbers interface between Oberon-07 and java.util.Random *)
3,048

edits