Skip to content

Commit

Permalink
Merge pull request #759 from stan-dev/fix/discrete_range_rng-return-type
Browse files Browse the repository at this point in the history
Fix discrete_range_rng's return type, link to vectorization doc
  • Loading branch information
mitzimorris authored Apr 11, 2024
2 parents 7edc6bb + bf50e57 commit 12290b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/functions-reference/bounded_discrete_distributions.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -659,12 +659,14 @@ The log of the discrete range complementary cumulative distribution function
for the given y, lower and upper bounds.
{{< since 2.26 >}}

<!-- int; discrete_range_rng; (ints l, ints u); -->
\index{{\tt \bfseries discrete\_range\_rng }!{\tt (ints l, ints u): int}|hyperpage}
<!-- ints; discrete_range_rng; (ints l, ints u); -->
\index{{\tt \bfseries discrete\_range\_rng }!{\tt (ints l, ints u): ints}|hyperpage}

`int` **`discrete_range_rng`**`(ints l, ints u)`<br>\newline
`ints` **`discrete_range_rng`**`(ints l, ints u)`<br>\newline
Generate a discrete variate between the given lower and upper bounds;
may only be used in transformed data and generated quantities blocks.
For a description of argument and return types, see section
[vectorized PRNG functions](conventions_for_probability_functions.qmd#prng-vectorization).
{{< since 2.26 >}}


Expand Down

0 comments on commit 12290b3

Please sign in to comment.