Purchase Solution

# Random Number Generator

Not what you're looking for?

For the equation RAND = (ac+m)MOD MAX , if the set of random numbers is known, is it possible to calculate a,c and m?

##### Solution Summary

The possibility of calculating variables from a random generator are discussed.

##### Solution Preview

First of all, if a,c and m never change, then RAND will always be the same number (not very random). So one of a or c must actually be the previous value of RAND to generate a set of pseudo-random numbers. Let us arbitrarily say RAND is fed back into the equation by assigning it to c. So your question boils down to "If we know the set of random numbers can we determine a and m?". We need two equations to solve two unknowns.

We shall start by considering the following start of a random sequence: {2,11,38,19,62,...} with max=100

There are four ...

##### Free BrainMass Quizzes

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.

##### Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.