diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml
index 95c46b1473047401c0512a233a076412b6841d4e..4dca636b92973c1f131d064fde2207cb0b663e80 100644
--- a/Doc/Sd1/statements.xml
+++ b/Doc/Sd1/statements.xml
@@ -1884,11 +1884,15 @@ Congratulations! you won!</programlisting>
               <para>Regarding user input reading and random number generating
               methods please use the following recipe to get started:</para>
 
-              <programlisting language="java">   public static void main(String[] args) {
-      final short maxValueInclusive = 10; // Upper inclusive limit for selecting
-                                          // random
-      final int randomValue =             // a random value ranging from 0 to
-            new <link
+              <programlisting language="java">package ...
+
+import java.util.Random;
+...
+   public static void main(String[] args) {
+      final short maxValueInclusive = 10;   // Upper inclusive limit for selecting
+                                            // random
+      final int randomValue =  new Random() // a random value ranging from 0 to
+            .<link
                   xlink:href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html#nextInt--">nextInt(maxValueInclusive + 1)</link>; // maxValueInclusive.
 
       final Scanner scan = new Scanner(System.in);