Random Number Generator in a Range (rand2)

버전 3.1.1 (6.49 KB) 작성자: Tamas Kis
Generates an n-dim matrix of random numbers between upper and lower bounds. Data type specification (integer, single, double) is available.
다운로드 수: 232
업데이트 날짜: 2022/9/28

rand2 View Random Number Generator in a Range (rand2) on File Exchange

Generates an n-dimensional matrix of random numbers between upper and lower bounds. Data type specification (integer, single, double) is available.

Syntax

X = rand2(a,b)
X = rand2(a,b,[],type)
X = rand2(a,b,[n1,...,nn])
X = rand2(a,b,[n1,...,nn],type)

Description

X = rand2(a,b) returns one random double-precision floating-point number X between a and b.

X = rand2(a,b,[],type) returns one random number X of data type type between a and b. Options for type are 'int' (integers), 'single' (single-precision floating point numbers), or 'double' (double-precision floating point numbers).

X = rand2(a,b,[n1,...,nn]) returns an n1-by-n2-by-...-by-nn matrix X of random double-precision floating-point numbers between a and b.

X = rand2(a,b,[n1,...,nn],type) returns an n1-by-n2-by-...-by-nn matrix X of random numbers of data type type. Options for type are 'int' (integers), 'single' (single-precision floating point numbers), or 'double' (double-precision floating point numbers).

Examples

  • See "EXAMPLES.mlx" or the "Examples" tab on the File Exchange page for examples.

인용 양식

Tamas Kis (2024). Random Number Generator in a Range (rand2) (https://github.com/tamaskis/rand2-MATLAB/releases/tag/v3.1.1), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2021a
R2008b 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
3.1.1

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v3.1.1

3.1.0

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v3.1.0

3.0.2

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v3.0.2

3.0.1

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v3.0.1

3.0.0

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v3.0.0

2.0.10

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.10

2.0.9

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.9

2.0.8

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.8

2.0.7

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.7

2.0.6.0

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.6

2.0.5

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.5

2.0.4

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.4

2.0.3.0

See release notes for this release on GitHub: https://github.com/tamaskis/rand2-MATLAB/releases/tag/v2.0.3

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.