- #1

- 8

- 0

## Main Question or Discussion Point

Hi,

I'm trying to write a short code in Mathematica that can generate random real numbers in - say 5 secs, and then plot this against any specified range I want. An additional complexity is that the function I'm generating the random numbers for is embedded in an integral. Here's an example of the algorithm:

From time t = 1 to 5;

Generate random real numbers for f = Integrate[sigma[x]^2,x]

Store f in another variable (say z)

Plot all values in z against a specified range

I'm trying to write a short code in Mathematica that can generate random real numbers in - say 5 secs, and then plot this against any specified range I want. An additional complexity is that the function I'm generating the random numbers for is embedded in an integral. Here's an example of the algorithm:

From time t = 1 to 5;

Generate random real numbers for f = Integrate[sigma[x]^2,x]

Store f in another variable (say z)

Plot all values in z against a specified range

Last edited: