1. Introduction
Random numbers generation is the process of generating a sequence of numbers that appear to be random, with no predictable pattern or structure. Random numbers are a fundamental component of many applications in probability theory and statistics, as well as in various fields such as finance, engineering, computer science, and cryptography. [1]
In probability theory, random numbers play a critical role in simulation and modeling. Simulations are often used to study the behavior of complex systems or to estimate the probability of rare events. To perform such simulations, random numbers are used to represent the various sources of uncertainty in the system being modeled. For example, in a simulation of a manufacturing process, random numbers might be used to represent the variation in the size or weight of raw materials, or the variability in machine settings or operator behavior.
The use of random numbers in simulation allows the modeler to study the behavior of the system under a wide range of possible scenarios, and to estimate the likelihood of various outcomes. [2-3]
Random numbers also play a critical role in statistical inference, which is the process of drawing conclusions about a population based on a sample of data. Random sampling is a common method used in statistics to select a subset of individuals or units from a larger population for analysis. By using random sampling, it is possible to ensure that the sample is representative of the population, and to make statistical inferences about the population based on the characteristics of the sample. In addition, random numbers are used in various statistical tests to determine whether an observed pattern or result is likely to have occurred by chance or is statistically significant. [4]
There are many methods for generating random numbers, ranging from simple coin flips and dice rolls to more sophisticated algorithms based on complex mathematical formulas or physical processes. The choice of a particular method depends on the application and the desired properties of the random numbers, such as their distribution, independence, and reproducibility. [5]
In neutrosophic sets theory many goodness of fit tests were generalized to handle uncertain interval valued data like [6-10], but until this moment there is no test can handle neutrosophic literal numbers of the form 𝑁= 𝑎+ 𝑏𝐼 ; 𝐼2 = 𝐼. So, in this paper we will first represent a method for generating random numbers follow a specific literal neutrosophic probability distribution then we represent a goodness of fit approach that assure the null hypothesis of having no significant difference between the generated numbers and the generator distribution.
2. Preliminaries
Definition 2.1 [11]
Definition 2.2 [12]
Let 𝑅(𝐼) be the literal neutrosophic real numbers set, transformation 𝑇 defined below is called the AHisometry:
Let 𝑁1, 𝑁2 ∈𝑅(𝐼) and 𝑇 be the AH-Isometry, 𝑇 is an algebraic isomorphism and it satisfies the following properties:
3. 𝑇 is correspondence one-to-one.
4. 𝑇 preserves distances.
Definition 2.3 [12]
Definition 2.4 [13]
with one neutrosophic variable.
Definition 2.5 [14-15]
Literal neutrosophic random variable 𝑋𝑁 is defined as follows:
Where:
And:
𝑋1, 𝑋2 are both real valued crisp random variables defined on Ω1, Ω2 respectively and taking values in 𝑅.
Definition 2.6 [7]
Literal neutrosophic probability 𝑃𝑁 is defined as follows:
1. Proposed Algorithm for Random Literal Neutrosophic Numbers Generating
Say that 𝑃𝑁= 𝑝1 + 𝑝2𝐼 is a literal neutrosophic probability that describes the literal neutrosophic cumulative probability distribution 𝐹𝑁(𝑥𝑁; Θ𝑁) where Θ𝑁= Θ1 + Θ2𝐼 is a vector of distribution’s parameters, i.e., 𝑃𝑁=
𝐹𝑁(𝑥𝑁; Θ𝑁), then to generate random literal neutrosophic numbers following distribution 𝐹𝑁 we can follow the following steps:
1. Solve the neutrosophic equation 𝑃𝑁= 𝐹𝑁(𝑥𝑁; Θ𝑁) for 𝑥𝑁 to get an equation of the form:
2. Take the isometry to equation (3).
3. You will have two equations of the form:
4. Generate a random number for 𝑝1 in [0,1] and for 𝑝1 + 𝑝2 in [0,1] (a crisp uniformly distributed number).
5. Solve equations (4-5) with respect to 𝑥1, 𝑥2.
6. The random literal neutrosophic number will be:
7. Repeat steps 4 to 6 until you have the sufficient set of numbers.
3.1 Random Numbers Generation of Literal Neutrosophic Uniform Distribution (LNUD)
Literal neutrosophic cumulative distribution function (LNCDF) of LNUD is defined in [7] as:
Solving equation (6) with respect to 𝑥𝑁 gives:
Taking isometric image of (7) results:
Which means depending on (2) and the properties of AH-Isometry that:
: ECDF and TCDF of 𝑋1 of LNUD Figure 1: ECDF and TCDF of 𝑋1 + 𝑋2 of LNUD
3.2 Random Numbers Generation of Literal Neutrosophic Exponential Distribution (LNED)
Literal neutrosophic cumulative distribution function (LNCDF) of LNED is defined in [7] as:
Solving equation (9) with respect to 𝑥𝑁 gives:
Taking isometric image of (10) results:
Which means depending on (2) and the properties of AH-Isometry that:
3.3 Random Numbers Generation of Literal Neutrosophic Normal Distribution (LNND)
Literal neutrosophic cumulative distribution function (LNCDF) of LNND is defined in [7] as:

Or simply write:
Solving equation (12) with respect to 𝑥𝑁 gives:
Taking isometric image of (13) results:
Which means depending on (2) and the properties of AH-Isometry that:
2. Literal Neutrosophic Kolmogorov-Smirnov Goodness of Fit Test
The Kolmogorov-Smirnov (KS) test is a statistical test used to determine whether a sample of data comes from a specified distribution, such as a normal distribution or an exponential distribution. The KS test can be used as a goodness-of-fit test to test the hypothesis that a sample of data comes from a specified distribution.
In this section we are going to develop the classical KS test to handle literal neutrosophic numbers proposing the following algorithm:
1. Determine the literal neutrosophic distribution to which you want to compare your data.
2. Define the null hypothesis and the alternative hypothesis. The null hypothesis is that the sample of data comes from the specified distribution, while the alternative hypothesis is that the sample of data does not come from the specified distribution.
3. Calculate the LNCDF of the specified distribution.
4. Calculate the literal neutrosophic empirical distribution function (LNEDF) of your sample data, here you will use neutrosophic ordering relation in definition 2.3.
5. Calculate the test statistic, which is the maximum absolute difference between the LNCDF and
LNEDF.
Where:
𝐹𝑁 is the LNCDF of the specified distribution.
𝑆𝑁 is the LNEDF of the sample data.
6. Calculate neutrosophic p-value (𝑝𝑣𝑁) of the test using the formula:
7. Compare the calculate 𝑝𝑣𝑁 with desired significance level 𝛼𝑁= 𝛼1 + 𝛼2𝐼 (can be crisp significance level when 𝛼2 = 0). If 𝑝𝑣𝑁 is less than 𝛼𝑁, reject the null hypothesis; otherwise, fail to reject the null hypothesis.
3. Simulation Study
1. Based on equation (8), a simulation study was performed 𝑁= 10000 times to generate different samples of sizes 𝑛= 10,30,50,100 each is following literal neutrosophic uniform distribution with parameters 𝑎𝑁= 1 −𝐼, 𝑏𝑁= 2 + 2𝐼 and tested whether these random samples are drawn from literal neutrosophic uniform distribution with parameters 𝑎𝑁= 1.5 −𝐼, 𝑏𝑁= 2.5 + 2𝐼 or not at significance level 𝛼= 0.05. The following table shows simulation results:
We see that test power increases when sample size increases. Proposed Kolmogorov-Smirnov test works better with samples of size larger than 50 for literal neutrosophic uniform distribution detection.
2. Based on equation (11), a simulation study was performed 𝑁= 10000 times to generate different samples of sizes 𝑛= 10,30,50,100 each is following literal neutrosophic exponential distribution with parameter 𝜆𝑁= 2.5 −1.5𝐼 and tested whether these random samples are drawn from literal neutrosophic exponential distribution with parameter 𝜆𝑁= 4 −𝐼 or not at significance level 𝛼= 0.05. The following table shows simulation results:
4. Conclusions and future research directions
In this study, we developed a new random number generator algorithm and applied it to find analytical formulas for three different literal neutrosophic probability distributions: uniform, exponential, and normal. We also developed the Kolmogorov-Smirnov test for goodness of fit to evaluate the performance of literal neutrosophic data. Our results show that the power of the test increases as the sample size grows, indicating that the test is effective in detecting differences between the generated data and the target distributions. Our study has several strengths, including the use of literal neutrosophic distributions and the potential applications of the developed algorithm in various fields. However, further research is needed to explore the properties of these distributions and to compare the results of our method with those from other methods. In conclusion, our study provides a new tool for generating random numbers from literal neutrosophic probability distributions and for evaluating the goodness of fit of the generated data. Future research in this area could further improve the performance and applicability of these methods.
Funding: “This research received no external funding”
Acknowledgments: Authors are very thankful to Editors-In-Chief for their assistance and management, authors also thank reviewers for their valuable edits and suggestions.
Conflicts of Interest: “The authors declare no conflict of interest.”