SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Welcome
Topic Name : Mid-Square Random Number Generation
Presented By
Md: Arman Hossain
OUTLINE
 Introduction
 Mid-square Method
 Example of Mid-square
 Departures of Mid-square Method
 Applications of Random Numbers
 References
INTRODUCTION
Mid-square method was invented by John von Neumann, and was described at a conference in 1949.
In mathematics, the mid-square method is a method of generating pseudorandom numbers. In practice it is
not a good method since its period is usually very short.
Mid-square Method
1. Starting with n digit number
2. Squaring it
3. For 8 digit : Remove two lower and higher order digit
4. For 7 digit : Remove one lower and two higher order digit
5. Taking n digits in the middle as the next number
6. Repeat from number no. 2.
Example of Mid-square
For an example, we are using 4 digit which is called seed number, we are showing generate 5 random number
here,
5673
1. (5673)2 = 32 1829 29 = 1829
2. (1829)2 = 3 3452 41 = 3452
3. (3452)2 = 11916304 = 9163
4. (9163)2 = 83960569 = 9605
5. (9605)2 = 92256025 = 2560
Remove two
higher order digit
Remove two
lower order digit
Next seed
number
Square seed
number
Remove one
higher order digit
Remove two
lower order digit
Departures of Mid-square Method
Converge on a constant :
 2500
(2500)2 = 6 2500 00 = 2500 This will repeated.
 2504
(2504)2 = 6 2700 16 = 2700
(2700)2 = 7 2900 00 = 2900
(2900)2 = 8 4100 00 = 4100
.
.
(2100)2 = 4 4100 00 = 4100 This will repeated also.
There more constant number like this.
seed
seed
Applications of Random Numbers
 Simulation : when a computer is being used to simulate natural phenomena, random numbers are
required to make things realistic. Simulation covers many fields, from the study of nuclear physics to
operations research.
 Sampling : It is often impractical to examine all possible cases, but a random sample will provide
insight into what constitutes “typical behavior”.
 Numerical analysis : Ingenious techniques for solving complicated numerical problems have been
devised using random numbers.
 Computer programming: Random values make a good source of data for testing the effectiveness of
computer algorithm.
 Decision making : There are reports that many executives make their decisions by flipping a coin or
by throwing darts, etc. It is also rumored that some college professors prepare their grades on such a
basis. Sometimes it is important to make a completely "unbiased decision; this ability is occasionally
useful in computer algorithms, for example in situations where a fixed decision made each time would
cause the algorithm to run more slowly. Randomness is also an essential part of optimal strategies in
the theory of games.
 Recreation : Rolling dice, shuffling decks of cards, spinning roulette wheels, etc., are fascinating
pastimes for just about everybody. These traditional uses of random numbers have suggested the name
"Monte Carlo method," a general term used to describe any algorithm that employs random numbers.
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networksAkash Goel
 
Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversionMohd Arif
 
Design of animation sequence
Design of animation sequenceDesign of animation sequence
Design of animation sequenceAzhar Nayeem
 
Overfitting & Underfitting
Overfitting & UnderfittingOverfitting & Underfitting
Overfitting & UnderfittingSOUMIT KAR
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)Timbal Mayank
 
Back propagation
Back propagationBack propagation
Back propagationNagarajan
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniquesMani Kanth
 
Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)RohitK71
 
FUNCTION APPROXIMATION
FUNCTION APPROXIMATIONFUNCTION APPROXIMATION
FUNCTION APPROXIMATIONankita pandey
 
System Modeling & Simulation Introduction
System Modeling & Simulation  IntroductionSystem Modeling & Simulation  Introduction
System Modeling & Simulation IntroductionSharmilaChidaravalli
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformationAnkit Garg
 
Output analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial BiasOutput analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial BiasTilakpoudel2
 

Was ist angesagt? (20)

Shading
ShadingShading
Shading
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
 
Intro to scan conversion
Intro to scan conversionIntro to scan conversion
Intro to scan conversion
 
Design of animation sequence
Design of animation sequenceDesign of animation sequence
Design of animation sequence
 
Overfitting & Underfitting
Overfitting & UnderfittingOverfitting & Underfitting
Overfitting & Underfitting
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
Markov Random Field (MRF)
Markov Random Field (MRF)Markov Random Field (MRF)
Markov Random Field (MRF)
 
Back propagation
Back propagationBack propagation
Back propagation
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Halftoning in Computer Graphics
Halftoning  in Computer GraphicsHalftoning  in Computer Graphics
Halftoning in Computer Graphics
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
 
Turing machine
Turing machineTuring machine
Turing machine
 
Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)
 
Anti aliasing Computer Graphics
Anti aliasing Computer GraphicsAnti aliasing Computer Graphics
Anti aliasing Computer Graphics
 
fractals
fractalsfractals
fractals
 
FUNCTION APPROXIMATION
FUNCTION APPROXIMATIONFUNCTION APPROXIMATION
FUNCTION APPROXIMATION
 
System Modeling & Simulation Introduction
System Modeling & Simulation  IntroductionSystem Modeling & Simulation  Introduction
System Modeling & Simulation Introduction
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
Output analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial BiasOutput analysis for simulation models / Elimination of initial Bias
Output analysis for simulation models / Elimination of initial Bias
 
Bayesian learning
Bayesian learningBayesian learning
Bayesian learning
 

Andere mochten auch

Pseudo Random Number Generators
Pseudo Random Number GeneratorsPseudo Random Number Generators
Pseudo Random Number GeneratorsDarshini Parikh
 
Simulation As a Method To Support Complex Organizational Transformations in H...
Simulation As a Method To Support Complex Organizational Transformations in H...Simulation As a Method To Support Complex Organizational Transformations in H...
Simulation As a Method To Support Complex Organizational Transformations in H...Jos van Hillegersberg
 
Applying the Scientific Method to Simulation Experiments
Applying the Scientific Method to Simulation ExperimentsApplying the Scientific Method to Simulation Experiments
Applying the Scientific Method to Simulation ExperimentsFrank Bergmann
 
Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...
Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...
Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...SeriousGamesAssoc
 
A copula-based Simulation Method for Clustered Multi-State Survival Data
A copula-based Simulation Method for Clustered Multi-State Survival DataA copula-based Simulation Method for Clustered Multi-State Survival Data
A copula-based Simulation Method for Clustered Multi-State Survival Datafedericorotolo
 
A368 afa1 b0f8-4b79-812f-980f7dc622bf
A368 afa1 b0f8-4b79-812f-980f7dc622bfA368 afa1 b0f8-4b79-812f-980f7dc622bf
A368 afa1 b0f8-4b79-812f-980f7dc622bfShatabdi Mahanta
 
Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...
Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...
Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...ArchiLab 7
 
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...iosrjce
 
A High-speed Verilog HDL Simulation Method using a Lightweight Translator
A High-speed Verilog HDL Simulation Method using a Lightweight TranslatorA High-speed Verilog HDL Simulation Method using a Lightweight Translator
A High-speed Verilog HDL Simulation Method using a Lightweight TranslatorRyohei Kobayashi
 
Games and Serious Games in Urban Planning: Study Cases
Games and Serious Games in Urban Planning: Study CasesGames and Serious Games in Urban Planning: Study Cases
Games and Serious Games in Urban Planning: Study CasesBeniamino Murgante
 
Architecture and urban planning (3 d) representation
Architecture and urban planning (3 d) representationArchitecture and urban planning (3 d) representation
Architecture and urban planning (3 d) representationMaria Bostenaru
 
Parallel Simulation of Urban Dynamics on the GPU Ivan Blečić, Arnaldo Cecchi...
Parallel Simulation of Urban Dynamics on the GPU  Ivan Blečić, Arnaldo Cecchi...Parallel Simulation of Urban Dynamics on the GPU  Ivan Blečić, Arnaldo Cecchi...
Parallel Simulation of Urban Dynamics on the GPU Ivan Blečić, Arnaldo Cecchi...Beniamino Murgante
 
Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...
Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...
Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...NeISSProject
 
Simulations and Educational Games
Simulations and Educational GamesSimulations and Educational Games
Simulations and Educational GamesCynthia Calongne
 

Andere mochten auch (20)

Pseudo Random Number Generators
Pseudo Random Number GeneratorsPseudo Random Number Generators
Pseudo Random Number Generators
 
And or graph problem reduction using predicate logic
And or graph problem reduction using predicate logicAnd or graph problem reduction using predicate logic
And or graph problem reduction using predicate logic
 
Simulation As a Method To Support Complex Organizational Transformations in H...
Simulation As a Method To Support Complex Organizational Transformations in H...Simulation As a Method To Support Complex Organizational Transformations in H...
Simulation As a Method To Support Complex Organizational Transformations in H...
 
Applying the Scientific Method to Simulation Experiments
Applying the Scientific Method to Simulation ExperimentsApplying the Scientific Method to Simulation Experiments
Applying the Scientific Method to Simulation Experiments
 
EGLACOMM / MEVIA APP TEASER
EGLACOMM / MEVIA APP TEASEREGLACOMM / MEVIA APP TEASER
EGLACOMM / MEVIA APP TEASER
 
Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...
Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...
Eswaran Subrahmanian - Serious Games in Complex Design of Urban Systems and P...
 
A copula-based Simulation Method for Clustered Multi-State Survival Data
A copula-based Simulation Method for Clustered Multi-State Survival DataA copula-based Simulation Method for Clustered Multi-State Survival Data
A copula-based Simulation Method for Clustered Multi-State Survival Data
 
Urban simulation by ANN-CA
Urban simulation by ANN-CAUrban simulation by ANN-CA
Urban simulation by ANN-CA
 
A368 afa1 b0f8-4b79-812f-980f7dc622bf
A368 afa1 b0f8-4b79-812f-980f7dc622bfA368 afa1 b0f8-4b79-812f-980f7dc622bf
A368 afa1 b0f8-4b79-812f-980f7dc622bf
 
Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...
Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...
Brudaru, o. 2011: cellular genetic algorithm with communicating grids for a d...
 
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
Simulation of Urban Mobility (Sumo) For Evaluating Qos Parameters For Vehicul...
 
Cfms project (asrc)
Cfms project (asrc)Cfms project (asrc)
Cfms project (asrc)
 
Serious games
Serious gamesSerious games
Serious games
 
A High-speed Verilog HDL Simulation Method using a Lightweight Translator
A High-speed Verilog HDL Simulation Method using a Lightweight TranslatorA High-speed Verilog HDL Simulation Method using a Lightweight Translator
A High-speed Verilog HDL Simulation Method using a Lightweight Translator
 
Games and Serious Games in Urban Planning: Study Cases
Games and Serious Games in Urban Planning: Study CasesGames and Serious Games in Urban Planning: Study Cases
Games and Serious Games in Urban Planning: Study Cases
 
charge simulation method
charge simulation methodcharge simulation method
charge simulation method
 
Architecture and urban planning (3 d) representation
Architecture and urban planning (3 d) representationArchitecture and urban planning (3 d) representation
Architecture and urban planning (3 d) representation
 
Parallel Simulation of Urban Dynamics on the GPU Ivan Blečić, Arnaldo Cecchi...
Parallel Simulation of Urban Dynamics on the GPU  Ivan Blečić, Arnaldo Cecchi...Parallel Simulation of Urban Dynamics on the GPU  Ivan Blečić, Arnaldo Cecchi...
Parallel Simulation of Urban Dynamics on the GPU Ivan Blečić, Arnaldo Cecchi...
 
Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...
Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...
Spatial Microsimulation for City Modelling, Social Forecasting and Urban Poli...
 
Simulations and Educational Games
Simulations and Educational GamesSimulations and Educational Games
Simulations and Educational Games
 

Ähnlich wie Midsquare method- simulation system

The monte carlo method
The monte carlo methodThe monte carlo method
The monte carlo methodSaurabh Sood
 
Best Practice in Mathematical Modeling
Best Practice in Mathematical ModelingBest Practice in Mathematical Modeling
Best Practice in Mathematical ModelingUniversity of Fribourg
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulationRajesh Piryani
 
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...cscpconf
 
Monte Carlo Simulation
Monte Carlo SimulationMonte Carlo Simulation
Monte Carlo SimulationDeepti Singh
 
Lecture 1 Descriptives.pptx
Lecture 1 Descriptives.pptxLecture 1 Descriptives.pptx
Lecture 1 Descriptives.pptxABCraftsman
 
ICANN19: Model-Agnostic Explanations for Decisions using Minimal Pattern
ICANN19: Model-Agnostic Explanations for Decisions using Minimal PatternICANN19: Model-Agnostic Explanations for Decisions using Minimal Pattern
ICANN19: Model-Agnostic Explanations for Decisions using Minimal PatternKohei Asano
 
Counting and Sequences
Counting and SequencesCounting and Sequences
Counting and SequencesDan Stewart
 
Understanding Basics of Machine Learning
Understanding Basics of Machine LearningUnderstanding Basics of Machine Learning
Understanding Basics of Machine LearningPranav Ainavolu
 
Statistical thinking
Statistical thinkingStatistical thinking
Statistical thinkingmij1120
 
Operational Research
Operational ResearchOperational Research
Operational ResearchRoy Thomas
 

Ähnlich wie Midsquare method- simulation system (20)

The monte carlo method
The monte carlo methodThe monte carlo method
The monte carlo method
 
Pseudo Random Number
Pseudo Random NumberPseudo Random Number
Pseudo Random Number
 
Best Practice in Mathematical Modeling
Best Practice in Mathematical ModelingBest Practice in Mathematical Modeling
Best Practice in Mathematical Modeling
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
 
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
AN ALTERNATIVE APPROACH FOR SELECTION OF PSEUDO RANDOM NUMBERS FOR ONLINE EXA...
 
Monte Carlo Simulation
Monte Carlo SimulationMonte Carlo Simulation
Monte Carlo Simulation
 
06.pdf
06.pdf06.pdf
06.pdf
 
Lecture 1 Descriptives.pptx
Lecture 1 Descriptives.pptxLecture 1 Descriptives.pptx
Lecture 1 Descriptives.pptx
 
ICANN19: Model-Agnostic Explanations for Decisions using Minimal Pattern
ICANN19: Model-Agnostic Explanations for Decisions using Minimal PatternICANN19: Model-Agnostic Explanations for Decisions using Minimal Pattern
ICANN19: Model-Agnostic Explanations for Decisions using Minimal Pattern
 
Week08.pdf
Week08.pdfWeek08.pdf
Week08.pdf
 
The Attractor
The AttractorThe Attractor
The Attractor
 
Ml ppt at
Ml ppt atMl ppt at
Ml ppt at
 
Counting and Sequences
Counting and SequencesCounting and Sequences
Counting and Sequences
 
ADA complete notes
ADA complete notesADA complete notes
ADA complete notes
 
03 notes
03 notes03 notes
03 notes
 
Understanding Basics of Machine Learning
Understanding Basics of Machine LearningUnderstanding Basics of Machine Learning
Understanding Basics of Machine Learning
 
Statistical thinking
Statistical thinkingStatistical thinking
Statistical thinking
 
Operational Research
Operational ResearchOperational Research
Operational Research
 
Simulation
SimulationSimulation
Simulation
 
Simulation
SimulationSimulation
Simulation
 

Kürzlich hochgeladen

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 

Kürzlich hochgeladen (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 

Midsquare method- simulation system

  • 2. Topic Name : Mid-Square Random Number Generation Presented By Md: Arman Hossain
  • 3. OUTLINE  Introduction  Mid-square Method  Example of Mid-square  Departures of Mid-square Method  Applications of Random Numbers  References
  • 4. INTRODUCTION Mid-square method was invented by John von Neumann, and was described at a conference in 1949. In mathematics, the mid-square method is a method of generating pseudorandom numbers. In practice it is not a good method since its period is usually very short.
  • 5. Mid-square Method 1. Starting with n digit number 2. Squaring it 3. For 8 digit : Remove two lower and higher order digit 4. For 7 digit : Remove one lower and two higher order digit 5. Taking n digits in the middle as the next number 6. Repeat from number no. 2.
  • 6. Example of Mid-square For an example, we are using 4 digit which is called seed number, we are showing generate 5 random number here, 5673 1. (5673)2 = 32 1829 29 = 1829 2. (1829)2 = 3 3452 41 = 3452 3. (3452)2 = 11916304 = 9163 4. (9163)2 = 83960569 = 9605 5. (9605)2 = 92256025 = 2560 Remove two higher order digit Remove two lower order digit Next seed number Square seed number Remove one higher order digit Remove two lower order digit
  • 7. Departures of Mid-square Method Converge on a constant :  2500 (2500)2 = 6 2500 00 = 2500 This will repeated.  2504 (2504)2 = 6 2700 16 = 2700 (2700)2 = 7 2900 00 = 2900 (2900)2 = 8 4100 00 = 4100 . . (2100)2 = 4 4100 00 = 4100 This will repeated also. There more constant number like this. seed seed
  • 8. Applications of Random Numbers  Simulation : when a computer is being used to simulate natural phenomena, random numbers are required to make things realistic. Simulation covers many fields, from the study of nuclear physics to operations research.  Sampling : It is often impractical to examine all possible cases, but a random sample will provide insight into what constitutes “typical behavior”.  Numerical analysis : Ingenious techniques for solving complicated numerical problems have been devised using random numbers.  Computer programming: Random values make a good source of data for testing the effectiveness of computer algorithm.  Decision making : There are reports that many executives make their decisions by flipping a coin or by throwing darts, etc. It is also rumored that some college professors prepare their grades on such a basis. Sometimes it is important to make a completely "unbiased decision; this ability is occasionally useful in computer algorithms, for example in situations where a fixed decision made each time would cause the algorithm to run more slowly. Randomness is also an essential part of optimal strategies in the theory of games.  Recreation : Rolling dice, shuffling decks of cards, spinning roulette wheels, etc., are fascinating pastimes for just about everybody. These traditional uses of random numbers have suggested the name "Monte Carlo method," a general term used to describe any algorithm that employs random numbers.