Skip to content

Commit

Permalink
CP: Update Tooltips (DynamoDS#11345) (DynamoDS#11346)
Browse files Browse the repository at this point in the history
* Update Tooltips

* Update description
  • Loading branch information
QilongTang authored Dec 8, 2020
1 parent 049c739 commit 31f77d9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/Libraries/CoreNodes/Math.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace DSCore
public static class Math
{
/// <summary>
/// Generates a random double in the range of (0, 1).
/// Generates a random double in the range of [0, 1).
/// </summary>
/// <param name="seed">Seed value for the random number generator.</param>
/// <returns name="number">Random number between 0 and 1.</returns>
Expand All @@ -29,11 +29,11 @@ public static double Random(int? seed = null)
}

/// <summary>
/// Produce a random number in the range (lower_number, higher_number).
/// Produce a random number in the range [lower_number, higher_number).
/// </summary>
/// <param name="value1">Lower range for the random number.</param>
/// <param name="value2">Higher range for the random number.</param>
/// <returns name="number">Random number in the range (lower_number, higher_number).</returns>
/// <param name="value1">Lower end of the range for the random number.</param>
/// <param name="value2">Higher end of the range for the random number.</param>
/// <returns name="number">Random number in the range [lower_number, higher_number).</returns>
/// <search>random,numberrange</search>
public static double Random(double value1, double value2)
{
Expand All @@ -42,12 +42,12 @@ public static double Random(double value1, double value2)
}

/// <summary>
/// Produce a random number in the range (lower_number, higher_number) based on an initial seed value.
/// Produce a random number in the range [lower_number, higher_number) based on an initial seed value.
/// </summary>
/// <param name="value1">Lower range for the random number.</param>
/// <param name="value2">Higher range for the random number.</param>
/// <param name="value1">Lower end of the range for the random number.</param>
/// <param name="value2">Higher end of the range for the random number.</param>
/// <param name="seed">Seed value for the random number generator.</param>
/// <returns name="number">Random number in the range (lower_number, higher_number).</returns>
/// <returns name="number">Random number in the range [lower_number, higher_number).</returns>
/// <search>random,numberrange,seed</search>
public static double Random(double value1, double value2, int seed)
{
Expand All @@ -57,7 +57,7 @@ public static double Random(double value1, double value2, int seed)

/// <summary>
/// Produces a list containing the given amount of random doubles
/// in the range of (0, 1).
/// in the range of [0, 1).
/// </summary>
/// <param name="amount">Amount of random numbers the result list will contain.</param>
/// <returns name="number">List of random numbers between 0 and 1.</returns>
Expand All @@ -74,13 +74,13 @@ public static IList RandomList(int amount)

/// <summary>
/// Produces a list containing the given amount of random doubles
/// in the defined range of (lower_number, higher_number) based on an initial seed value.
/// in the defined range of [lower_number, higher_number) based on an initial seed value.
/// </summary>
/// <param name="amount">Amount of random numbers the result list will contain.</param>
/// <param name="value1">Lower range for the random number.</param>
/// <param name="value2">Higher range for the random number.</param>
/// <param name="value1">Lower end of the range for the random number.</param>
/// <param name="value2">Higher end of the range for the random number.</param>
/// <param name="seed">Seed value for the random number generator.</param>
/// <returns name="number">List of random numbers in the range (lower_number, higher_number).</returns>
/// <returns name="number">List of random numbers in the range [lower_number, higher_number).</returns>
/// <search>random,listcontains,seed</search>
public static IList RandomList(int amount, double value1, double value2, int seed)
{
Expand Down Expand Up @@ -504,9 +504,9 @@ public static double Pow(double number, double power)
}

/// <summary>
/// Produce a random number in the range (0, 1).
/// Produce a random number in the range [0, 1).
/// </summary>
/// <returns name="number">Random number in the range (0, 1).</returns>
/// <returns name="number">Random number in the range [0, 1).</returns>
/// <search>random,numberrange</search>
//[IsVisibleInDynamoLibrary(false)] //Keeping for compatibility, Random() supercedes this --SJE
public static double Rand()
Expand Down

0 comments on commit 31f77d9

Please sign in to comment.