SlideShare a Scribd company logo
2
Most read
Random Number Generator
Starting with an n digit number, squaring it
and taking the n digit in the middle as the
next number, which is then squared to
obtain the next number.


E.g.: Seed= 5673, Square= 32182929.
1829² = 3345241…
Converge on a constant.
• Seed= 2500, Square= 6250000,
  2500, 2500…
• Seed= 2504, Square= 6270016,
  2700²= 7290000, 2900²=
  8410000…
Starting with an n digit number, squaring it
and taking the n digit in the middle as the
random number.


For the next seed, add the removing higher
order and lower order digits to the middle n
digit number (random number), which is
then squared to obtain the next number.
Seed, X0= 5673.

5673²= 32182929. X1= 1829+3+2+2+9= 1845.

1845²= 3404025. X2= 4040+3+2+5= 4050.

4050²= 16402500. X3= 4025+ 1+6= 4032.

Random Numbers= 1829, 4040, 4025, 2570…
Seed, X0= 5673

MID-SQUARE                Modified MOD-SQUARE
 KS Test, D= 0.2536       KS Test, D= 0.3282
 Chi-Square, X²0= 5.29    Chi-Square, X²0= 5.31
 Runs Up & Down, Z= -     Runs Up & Down, Z=
  0.366                     0.188
 Runs above & Below       Runs above & Below
  mean, Z=0.844             mean, Z= -0.161
Random Number Generator
Random Number Generator

More Related Content

PPTX
Mid point circle algorithm
PPT
Random number generation
PPTX
1.3 SYMMETRY
PDF
Decision Tree Algorithm | Decision Tree in Python | Machine Learning Algorith...
PDF
Differential evolution
PPTX
Functions
PPTX
Unit 3 random number generation, random-variate generation
PPT
2d transformations
Mid point circle algorithm
Random number generation
1.3 SYMMETRY
Decision Tree Algorithm | Decision Tree in Python | Machine Learning Algorith...
Differential evolution
Functions
Unit 3 random number generation, random-variate generation
2d transformations

What's hot (20)

PDF
Givens rotation method
PPTX
Supervised learning and Unsupervised learning
PPT
Random variate generation
PPTX
Presentation on Solution to non linear equations
PPTX
Spatial Database and Database Management System
PPTX
Painter's Algorithm https://www old.pptx
PPTX
Machine learning with scikitlearn
PPTX
CART – Classification & Regression Trees
PPTX
Fuzzy logic and its applications
PPTX
Sets venn diagrams
PPTX
Machine learning algorithms
PDF
Computer Graphics - Output Primitive
PPTX
Function and graphs
PPTX
Inverse Matrix & Determinants
PDF
SciPy 1.0 and Beyond - a Story of Community and Code
PPTX
One R (1R) Algorithm
PDF
Static vs dynamic types
PPTX
First order logic
PDF
Complex function
Givens rotation method
Supervised learning and Unsupervised learning
Random variate generation
Presentation on Solution to non linear equations
Spatial Database and Database Management System
Painter's Algorithm https://www old.pptx
Machine learning with scikitlearn
CART – Classification & Regression Trees
Fuzzy logic and its applications
Sets venn diagrams
Machine learning algorithms
Computer Graphics - Output Primitive
Function and graphs
Inverse Matrix & Determinants
SciPy 1.0 and Beyond - a Story of Community and Code
One R (1R) Algorithm
Static vs dynamic types
First order logic
Complex function
Ad

Similar to Random Number Generator (20)

PPTX
SQUARES AND SQUARE ROOTS.pptx powerpoint presentation square and square roots...
PPTX
square and square roots
PPTX
mathematics grade 6 quarter 1 week 4 melc.pptx
PDF
PPTX
Rational numbers
PDF
1. basic concepts (1)
PPTX
Mathinik
PDF
07 cube and cube roots
PDF
C3 3.4
PPTX
Vedic ganit
PPTX
Number_Play.pptx ppt ppt ppt ppt ppt ppt
RTF
Benefits of Vedic Mathematics
PDF
Digital textbook
PPTX
cubes-and-cube-roots_chapter7.pp ppppptx
PDF
Mathematics mathematics elementary
PDF
Maths formula by viveksingh698@gmail.com
PDF
7. problem on numbers
PDF
PPTX
Square-Triangular-Cube Numbers-Demonstration.pptx
DOCX
Directions Please show all of your work for each problem. If app.docx
SQUARES AND SQUARE ROOTS.pptx powerpoint presentation square and square roots...
square and square roots
mathematics grade 6 quarter 1 week 4 melc.pptx
Rational numbers
1. basic concepts (1)
Mathinik
07 cube and cube roots
C3 3.4
Vedic ganit
Number_Play.pptx ppt ppt ppt ppt ppt ppt
Benefits of Vedic Mathematics
Digital textbook
cubes-and-cube-roots_chapter7.pp ppppptx
Mathematics mathematics elementary
Maths formula by viveksingh698@gmail.com
7. problem on numbers
Square-Triangular-Cube Numbers-Demonstration.pptx
Directions Please show all of your work for each problem. If app.docx
Ad

More from Kailas Sree Chandran (20)

PPTX
Cleaning-Casting-Defects-and-Die-Castings-CleaningFettling-of-Castings
PDF
Computer basics
PDF
PDF
Oil Drilling
PDF
PDF
Apache Helicopter
PDF
Go Kart Project
PDF
Quasi Turbine Engine
PDF
Pioneers In Industrial Engineering
PDF
Metrology Assignment
PDF
PDF
Metrology Assignment Ppt
PDF
Software Lab Mini Project
PDF
PPT on Statistical - Cent%
PDF
Quality Circles
PDF
Overall Equipment Effectiveness
PDF
Input Devices
PDF
Cost & Reliability
PDF
Concept of ISO
Cleaning-Casting-Defects-and-Die-Castings-CleaningFettling-of-Castings
Computer basics
Oil Drilling
Apache Helicopter
Go Kart Project
Quasi Turbine Engine
Pioneers In Industrial Engineering
Metrology Assignment
Metrology Assignment Ppt
Software Lab Mini Project
PPT on Statistical - Cent%
Quality Circles
Overall Equipment Effectiveness
Input Devices
Cost & Reliability
Concept of ISO

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Institutional Correction lecture only . . .
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Classroom Observation Tools for Teachers
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
master seminar digital applications in india
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pharma ospi slides which help in ospi learning
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPH.pptx obstetrics and gynecology in nursing
Renaissance Architecture: A Journey from Faith to Humanism
O7-L3 Supply Chain Operations - ICLT Program
human mycosis Human fungal infections are called human mycosis..pptx
Institutional Correction lecture only . . .
Final Presentation General Medicine 03-08-2024.pptx
RMMM.pdf make it easy to upload and study
102 student loan defaulters named and shamed – Is someone you know on the list?
2.FourierTransform-ShortQuestionswithAnswers.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Classroom Observation Tools for Teachers
Microbial diseases, their pathogenesis and prophylaxis
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
master seminar digital applications in india
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial disease of the cardiovascular and lymphatic systems
Pharmacology of Heart Failure /Pharmacotherapy of CHF

Random Number Generator

  • 2. Starting with an n digit number, squaring it and taking the n digit in the middle as the next number, which is then squared to obtain the next number. E.g.: Seed= 5673, Square= 32182929. 1829² = 3345241…
  • 3. Converge on a constant. • Seed= 2500, Square= 6250000, 2500, 2500… • Seed= 2504, Square= 6270016, 2700²= 7290000, 2900²= 8410000…
  • 4. Starting with an n digit number, squaring it and taking the n digit in the middle as the random number. For the next seed, add the removing higher order and lower order digits to the middle n digit number (random number), which is then squared to obtain the next number.
  • 5. Seed, X0= 5673. 5673²= 32182929. X1= 1829+3+2+2+9= 1845. 1845²= 3404025. X2= 4040+3+2+5= 4050. 4050²= 16402500. X3= 4025+ 1+6= 4032. Random Numbers= 1829, 4040, 4025, 2570…
  • 6. Seed, X0= 5673 MID-SQUARE Modified MOD-SQUARE  KS Test, D= 0.2536  KS Test, D= 0.3282  Chi-Square, X²0= 5.29  Chi-Square, X²0= 5.31  Runs Up & Down, Z= -  Runs Up & Down, Z= 0.366 0.188  Runs above & Below  Runs above & Below mean, Z=0.844 mean, Z= -0.161