필터 지우기
필터 지우기

Generate repeatable random integers within a fixed range

조회 수: 1 (최근 30일)
nabilah shuhaimi
nabilah shuhaimi 2021년 12월 1일
답변: Chunru 2021년 12월 1일
I want to generate 4 random integers from 4 to 11. The integers are repeatable

답변 (1개)

Chunru
Chunru 2021년 12월 1일
a = randi([4 11], 4, 1)
a = 4×1
10 4 10 8

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by