Answers.Body: <blockquote>
    <p>Why AI is (or not) a good option for the generation of random numbers? </p>
  </blockquote>
  
  <p>AI approaches are generally not good for generating random numbers, for these reasons:</p>
  
  <ul>
  <li><p>Similar to why they are not good for adding numbers, there already exist many strong pseudo-random and "true" random sources, possible without using any AI approach, and demonstrably good enough for purposes such as simulations and cryptography. These existing algorithms and devices perform much more efficiently at the task than any AI could.</p></li>
  <li><p>Generating random numbers with good statistical properties is a very precise task, that the approximations typically used in machine learning cannot cope with (a pseudo-random function is inherently noisy and difficult to learn). AI search techniques are not helpful either, because the amount of output that needs to be generated in order to validate a random data source is very large, making things like tree searches for solutions intractable.</p></li>
  </ul>
  
  <p>One possible relationship between AI and random number generation that could be explored is in code generation and code analysis for random number generators. In other words, an AI that is sophisticated enough to understand the complexity of code used in a typical random number generator (RNG) might help with making random number generation more efficient, or less easy to hack, or expose flaws in existing implementations. This is beyond the capabilities of AI techniques at the moment - or put another way, human intelligence has taken RNG technology quite far already, so there is very little practical that current AIs can do to improve on it.</p>
  
  <blockquote>
    <p>Would GANs be suited for this purpose?</p>
  </blockquote>
  
  <p>No. The input to a GAN is typically a vector of random numbers that have been generated, by an already-existing RNG. The purpose the the GAN is convert this simply-distributed random vector input <span class="math-container">$\mathbf{x}$</span> - which might be suitable for many other purposes, such as running simulations of stochastic processes - into a <span class="math-container">$\mathbf{y}$</span> sampled from a distribution of some target population <span class="math-container">$\mathbb{Y}$</span>, which is typically being expressed as a subset of a large space <span class="math-container">$\mathbb{R}^d$</span>. The values that <span class="math-container">$\mathbf{y}$</span> will take are biased to a subspace (or <em>manifold</em>) of all possible space within the representations possible in that vector space. For instance, you might input a random vector with 100 variables and the GAN will generate a picture of a dog. It cannot generate anything other than attempts at pictures of dogs, whilst the space of all possible images that it might create if completely random is far larger (and usually not interesting to look at).</p>
  
  <p>So a GAN would take an already-good random source and turn it into a biased set of numbers that would be generally unusable as a RNG without further processing. The kind of processing you would do (e.g. "noise whitening") is something that some current "secure" random generators do - meaning to use the GAN to generate quality random numbers you would literally put existing RNG code on its input and output layers. The GAN would add nothing but wasted computation.</p>
  
  <p>You cannot even train a GAN to do this task, since a truly random space contains all possible outputs, there will be no negative examples for the discriminator. Although a random picture most often looks like static noise, and a picture of the Mona Lisa is clearly considered "not random" by most people, in fact it is just as likely to be seen as any other image.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-21T15:33:35.657Z
Answers.Text: any article that proves it? Could you have any me?
Answers.UserDisplayName: Santos
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-21T18:42:55.390Z
Answers.Text: @Santos: There might be a blog or something by someone stating the same things, but I don't expect any academic article. This is not an area of speculation or missing knowledge where academic research is necessary. If you can express your question in a way that makes it **mathematical** in nature, I could probably match that with a suitable proof.
Answers.UserDisplayName: Neil Slater
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-21T14:52:37.190Z
Answers.LastActivityDate: 2019-11-21T15:05:41.980Z
Answers.LastEditDate: 2019-11-21T15:05:41.980Z
Answers.UserDisplayName: Neil Slater
Body: <p>Why AI is (or not) a good option for the generation of random numbers? Would GANs be suited for this purpose?</p>
  
Tags: <neural-networks><generative-adversarial-networks><randomness>
Title: Why AI is (or not) a good option for the generation of random numbers?
UserDisplayName: Santos
ThreadText: # Why AI is (or not) a good option for the generation of random numbers?
  
  (Asked by: username_0 on 2019-11-21)
  
  Why AI is (or not) a good option for the generation of random numbers? Would GANs be suited for this purpose?
  
  **Tags:** neural-networks, generative-adversarial-networks, randomness
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-21. Score: 2
  
  > Why AI is (or not) a good option for the generation of random numbers?
  
  AI approaches are generally not good for generating random numbers, for these reasons:
  
  * Similar to why they are not good for adding numbers, there already exist many strong pseudo-random and "true" random sources, possible without using any AI approach, and demonstrably good enough for purposes such as simulations and cryptography. These existing algorithms and devices perform much more efficiently at the task than any AI could.
  * Generating random numbers with good statistical properties is a very precise task, that the approximations typically used in machine learning cannot cope with (a pseudo-random function is inherently noisy and difficult to learn). AI search techniques are not helpful either, because the amount of output that needs to be generated in order to validate a random data source is very large, making things like tree searches for solutions intractable.
  
  One possible relationship between AI and random number generation that could be explored is in code generation and code analysis for random number generators. In other words, an AI that is sophisticated enough to understand the complexity of code used in a typical random number generator (RNG) might help with making random number generation more efficient, or less easy to hack, or expose flaws in existing implementations. This is beyond the capabilities of AI techniques at the moment - or put another way, human intelligence has taken RNG technology quite far already, so there is very little practical that current AIs can do to improve on it.
  
  > Would GANs be suited for this purpose?
  
  No. The input to a GAN is typically a vector of random numbers that have been generated, by an already-existing RNG. The purpose the the GAN is convert this simply-distributed random vector input $\mathbf{x}$ - which might be suitable for many other purposes, such as running simulations of stochastic processes - into a $\mathbf{y}$ sampled from a distribution of some target population $\mathbb{Y}$, which is typically being expressed as a subset of a large space $\mathbb{R}^d$. The values that $\mathbf{y}$ will take are biased to a subspace (or *manifold*) of all possible space within the representations possible in that vector space. For instance, you might input a random vector with 100 variables and the GAN will generate a picture of a dog. It cannot generate anything other than attempts at pictures of dogs, whilst the space of all possible images that it might create if completely random is far larger (and usually not interesting to look at).
  
  So a GAN would take an already-good random source and turn it into a biased set of numbers that would be generally unusable as a RNG without further processing. The kind of processing you would do (e.g. "noise whitening") is something that some current "secure" random generators do - meaning to use the GAN to generate quality random numbers you would literally put existing RNG code on its input and output layers. The GAN would add nothing but wasted computation.
  
  You cannot even train a GAN to do this task, since a truly random space contains all possible outputs, there will be no negative examples for the discriminator. Although a random picture most often looks like static noise, and a picture of the Mona Lisa is clearly considered "not random" by most people, in fact it is just as likely to be seen as any other image.
  
  > **Comments:**
  > **username_0**: any article that proves it? Could you have any me?  
  > **username_1**: @username_0: There might be a blog or something by someone stating the same things, but I don't expect any academic article. This is not an area of speculation or missing knowledge where academic research is necessary. If you can express your question in a way that makes it **mathematical** in nature, I could probably match that with a suitable proof.  
  
  ---
  
  