random

random random($limit)

Overloads:

  • random

    Return a decimal between 0 and 1, inclusive of 0 but not 1.

    Returns:

    • (Number) A decimal value.
  • random($limit)

    Return an integer between 1 and $limit, inclusive of both 1 and $limit.

    Parameters:

    • $limit (Number) The maximum of the random integer to be returned, a positive integer.

    Returns:

    • (Number) An integer.

    Raises:

    • (ArgumentError) if the $limit is not 1 or greater
doc_Sass
2016-11-11 13:09:21
Comments
Leave a Comment

Please login to continue.