RAND

  • Last update:December 13, 2024
  • Overview

    Syntax

    RAND()

    Returns an evenly distributed random number greater than or equal to 0 and less than 1. A new random number is returned every time the worksheet is   calculated.

    Notes

    • No parameter is required in the function.

    • To generate a random number between a and b, you can use RAND()*(b-a)+a.

    To generate a random number greater than or equal to 0 and less than 60, you can use RAND()*60.

    To generate a random number greater than or equal to 0 and less than 19, you can use RAND()*19.

    Example

    For example, the following figure shows how to return an evenly distributed random number greater than or equal to 0 and less than 1.

    1.png

    2.png

    The following table describes more examples.

    Formula
    ResultNote

    RAND()*60

    Generates a random number greater than or equal to 0 and less than 60.


    RAND()*19

    Generates a random number greater than or equal to 0 and less than 19.


    RAND()*50

    Generates a random number greater than or equal to 0 and less than 50.


    附件列表


    主题: Advanced Data Analysis
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy