# Questions tagged [random]

Questions about random number generation and the properties of numbers so generated.

708 questions
Filter by
Sorted by
Tagged with
20 views

### Random number generator and put that in my function

I want to have 100 random numbers from the range i=0.1 to 100. And then, I want to use them in a nonlinear model and extract the random number and the dependent variable in excel format. Is there any ...
70 views

### How to find random values of variable satisfying multiple conditions?

I have multiple conditions to be satisfied ...
23 views

### ItoProcess with WhiteNoiseProcess

Is there a way to use ItoProcess with a white noise process, instead of the usual WienerProcess? If I just naively use ...
38 views

### Can the WishartMatrixDistribution command be used for generating random density matrices?

I am interested in generating random members of two classes of $n \times n$ positive-definite matrices $A$ and $B$--the former symmetric in nature, the latter, Hermitian. The standard (Ginibre-matrix-...
47 views

### Obtain fairly sampled data set subject to a condition?

I need to obtain a random distribution of some parameters {t1,t2,t3} subject to a set of conditions. For example, ...
51 views

### Generating and operating with random number

I'm working basically with the creation of random numbers that represent the positions of $N$ electrons within a box. Later, I sum all the individual electric fields generated by the electrons, thus ...
27 views

### How to find multiple groups of solutions that meet the requirements

I want to find multiple nonzero real matrices A, B that satisfy $A.B=\mathbf{0}$ condition. ...
62 views

### Generate random matrix with specific eigenvalues [duplicate]

I want to generate some matrices of order 3 with eigenvalues 1,2, -2. ...
35 views

### How to quickly generate a nilpotent matrix?

At present, I want to generate some random matrices whose nth power is zero matrix. ...
46 views

667 views

### How to generate a random integer array satisfying complex constraints

I want to generate several random arrays {x1,x2,x3,x4,x5} that satisfy the following complex constraints: ...
44 views

### How to add a number, say, 1 to a random real number in Mathematica? [duplicate]

I wish to add, say, 1 to a random real number, say between 1/3 and 1/6. I have used the following code in Mathematica, but it does not answer properly. code: p := RandomReal[1/6,1/3] q:=p+1 p ...
134 views

### Specifying range in RandomReal

Is it possible to define the specific range of a RandomReal array for each coordinate? For example, the code ...
328 views

### What is the optimal way to create a recombined version of two lists?

I would like to randomly recombine two lists of the following form: l1 = {a,b,c,d,e,f} l2 = {1,2,3,4,5,6} Where their recombination is similar to that of DNA, so ...
76 views

### Random Number Generation using LogNormalDistribution

I have a problem that I can't seem to figure out on my own due to limited knowledge of mathematics, and I was hoping I could seek help from the community. I would like to use ...
317 views

### How can I solve a nonlinear equation using a Monte Carlo method?

I know FindRoot can solve nonlinear equations, but now I'm interested in solving such an equation using a Monte Carlo method. Can somebody show how that could be ...
62 views

### Problem with iterations of Prepend/While

I am doing some work with black-scholes and am trying to find random interest rates based on some given information. This is my original code: ...
358 views

### How can I generate random matrices with certain requirements for the entries?

I would like to generate random 9x9 matrices, which contain only the digits 1-9, each one appearing exactly ...
108 views

### How to put a loop in a loop

I am doing some work with black-scholes. As commented within my code, I need my while loop to run 100 times. I am not sure if the best way to do this is with a nested argument or placing a for loop or ...