From c77b773899a8e82bc884b2f854d8eae9dfba7554 Mon Sep 17 00:00:00 2001
From: "Dr. Martin Goik" <goik@hdm-stuttgart.de>
Date: Mon, 18 May 2020 18:52:50 +0200
Subject: [PATCH] random 10 inclusive, API link corrected

---
 Doc/Sd1/statements.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml
index 2c53c238a..7eb214fc1 100644
--- a/Doc/Sd1/statements.xml
+++ b/Doc/Sd1/statements.xml
@@ -4655,8 +4655,11 @@ import java.util.Random;
 ...
    public static void main(String[] args) {
 
+       // Add some parameter here e.g. range of number to be guessed,
+       // and number of tries.
+
       final int randomValue =  new Random() // Selecting a pseudo random value
-            .<link xlink:href="https://docs.oracle.com/javase/10/docs/api/java/util/Random.html#nextInt()">nextInt(10)</link>;                   // between 0 and 10 (inclusive).
+            .<link xlink:href="https://docs.oracle.com/javase/10/docs/api/java/util/Random.html#nextInt(int)">nextInt(11)</link>;                   // between 0 and 10 (inclusive).
 
       // ToDo: complete the implementation
    }</programlisting>
-- 
GitLab