Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mhilbrunner authored Nov 18, 2024
1 parent 0974aec commit 8f8bc37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/math/random_number_generation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ varying by the deviation (1.0 by default):

.. code-tab:: csharp

// Prints a random floating-point number from a normal distribution with a mean 0.0 and deviation 1.0.
// Prints a random floating-point number from a normal distribution with a mean of 0.0 and deviation of 1.0.
GD.Print(GD.Randfn());

:ref:`randf_range() <class_@GlobalScope_method_randf_range>` takes two arguments
Expand Down Expand Up @@ -396,7 +396,7 @@ floating-point number between 0.0 and 1.0. We can use this to create a
You can also get a weighted random *index* using the
:ref:`rand_weighted() <class_RandomNumberGenerator_method_rand_weighted>` method
on a RandomNumberGenerator instance. This returns a random integer
between 0 and the size of the array that is passed as a paramter. Each value in the
between 0 and the size of the array that is passed as a parameter. Each value in the
array is a floating-point number that represents the *relative* likelihood that it
will be returned as an index. A higher value means the value is more likely to be
returned as an index, while a value of ``0`` means it will never be returned as an index.
Expand Down

0 comments on commit 8f8bc37

Please sign in to comment.