Three methods for randomly generating data and three methods for generating data

Source: Internet
Author: User

Three methods for randomly generating data and three methods for generating data

1. Generate a random number using the Tree Structure
Select 1090900 + round (rownum/2 ),
Round (dbms_random.value (100000,10001000), 0)
From dual
Connect by rownum< 100

2. Generate a random number through Cartesian Product
Select rownum
From all_obj_colattrs,
All_obj_colattrs;

3. generate random numbers using tools
TOOLS ---> DATA GENERATOR


How to automatically generate random data in excel

To see what data you want, a RAND () function can generate data randomly.

RAND

Returns a random number with an even distribution greater than or equal to 0 and less than 1. A new value is returned for each worksheet calculation.

Syntax

RAND ()

Description

To generate a random real number between a and B, use:
RAND () * (B-a) +

If you want to use the RAND function to generate a random number that does not change with cell computing, you can enter "= RAND ()" in the editing column to maintain the editing status, and then press F9, change the formula permanently to a random number.
Example

= RAND () a random number (variable) between 0 and 1)
= RAND () * a random number (variable) with a value greater than or equal to 0 but less than 100)

How to randomly generate data with a specified range in excel

To generate a random number, you must use the rand function and the RANDBETWEEN function. The former generates a function smaller than 1, and the latter generates a function between two constrained numbers. However, the RANDBETWEEN function must install the function library, the default installation is not necessarily available. So I will introduce the rand function as an application. Follow these steps:
Input = RAND () * (60.019-60) + 60 in A1-E1
Input = RAND () * (60.019-60) + 60 in A2-E2

The rand function generates a random number between 0 and 1, so that it can multiply the number of ranges and add the base number to obtain the random number between the ranges you want.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.