Skip to content

Commit

Permalink
Fixes rnd_choice doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lesquoyb committed May 8, 2023
1 parent 2038145 commit fe17bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msi.gama.core/src/msi/gaml/operators/Random.java
Expand Up @@ -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" })
Expand Down

0 comments on commit fe17bc1

Please sign in to comment.