About 172,000 results
Open links in new tab
  1. randi - Uniformly distributed random integers - MATLAB

    This MATLAB function returns a random scalar integer between 1 and imax.

  2. Random Integers - MATLAB & Simulink - MathWorks

    Random Integers This example shows how to create an array of random integer values that are drawn from a discrete uniform distribution on the set of numbers –10, –9,...,9, 10. The simplest …

  3. Random Number Generation - MATLAB & Simulink - MathWorks

    Use the rand, randn, and randi functions to create sequences of pseudorandom numbers, and the randperm function to create a vector of randomly permuted integers. Use the rng function to …

  4. rand - Uniformly distributed random numbers - MATLAB

    This MATLAB function returns a random scalar drawn from the uniform distribution in the interval (0,1).

  5. Create Arrays of Random Numbers - MATLAB & Simulink

    Use the rng function to set the seed and generator used by the rand, randi, randn, and randperm functions. For example, rng(0,"twister") sets the seed to 0 and the generator algorithm to …

  6. randn - Normally distributed random numbers - MATLAB

    This MATLAB function returns a random scalar drawn from the standard normal distribution.

  7. randi - Create codistributed array of uniformly distributed random ...

    This MATLAB function creates an n-by-n codistributed matrix of uniformly distributed random integers in the range defined by r and uses codist to specify the distribution of the array values …

  8. How do I use randn vs randi vs rand? - MATLAB Answers

    Mar 6, 2017 · I only understand the difference between rand (), randi (), randn after reading this post and specifically Walter's answers. Only then does the documentation and help partially …

  9. How can use randi function for a specific array of numbers?

    Sep 7, 2021 · How can use randi function for a specific array... Learn more about random, random number generator, rand, randi

  10. Can the random function accommodate the randi function?

    Nov 22, 2024 · I am using randi([0,1],[N,1]); to randomly generate 0s and 1s. If I am not mistaken, the random function is replacing the older, distribution specific, functions such as the normrnd …