I want to generate random numbers manually. I know that every language have the rand or random function, but I’m curious to know how this is working. Does anyone have code for that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at the following:
Random Number Generation
Linear Congruential Generator – a popular approach also used in Java
List of Random Number Generators
And here’s another link which elaborates on the use of LCG in Java’s Random class