From fe17bc13506797ece708973b0102581fe8d084ab Mon Sep 17 00:00:00 2001 From: Baptiste Lesquoy Date: Mon, 8 May 2023 15:06:50 +0700 Subject: [PATCH] Fixes rnd_choice doc --- msi.gama.core/src/msi/gaml/operators/Random.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msi.gama.core/src/msi/gaml/operators/Random.java b/msi.gama.core/src/msi/gaml/operators/Random.java index bbf40bfcfb..cf625cbea8 100644 --- a/msi.gama.core/src/msi/gaml/operators/Random.java +++ b/msi.gama.core/src/msi/gaml/operators/Random.java @@ -921,7 +921,7 @@ public static Integer opRndChoice(final IScope scope, final IList distribution) @doc ( value = "returns a key from the map with a probability following the (normalized) distribution described in map values (a form of lottery)", examples = { @example ( - value = "rnd_choice([\"toto\"::0.2,\\\"tata\\\"::0.5,\\\"tonton\\\"::0.3])", + value = "rnd_choice([\"toto\"::0.2,\"tata\"::0.5,\"tonton\"::0.3])", equals = "2/10 chances to return \"toto\", 5/10 chances to return \"tata\", 3/10 chances to return \"tonton\"", test = false) }, see = { "rnd" })