Skip to content

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtar committed Feb 28, 2025
1 parent ffdb0f6 commit 5b82c28
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/scala-2/com/evolutiongaming/random/Random.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@ object Random {
}
}

/** The pseudo random number generator (PRNG) for a single specific type `A` based on [[https://en.wikipedia.org/wiki/Linear_congruential_generator LCG]] algorithm.
/** The pseudo random number generator (PRNG) for a single specific type `A`
* based on
* [[https://en.wikipedia.org/wiki/Linear_congruential_generator LCG]]
* algorithm.
*
* It takes some `state1` as an input and returns a new `state2` and a random
* value of type `A`.
*
* Technically, it is just a function from `(Seed)` to `(Seed, A)`.
*
* `StateT` is used instead of a plain function, it has the ability to
* chain several calls in for comprehensions, instead of doing something like
* `StateT` is used instead of a plain function, it has the ability to chain
* several calls in for comprehensions, instead of doing something like
* following:
* ```
* val (state1, a) = f(seed)
Expand Down

0 comments on commit 5b82c28

Please sign in to comment.