Explore BrainMass

# Random Number Generator

Not what you're looking for? Search our solutions OR ask your own Custom question.

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

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?

https://brainmass.com/math/optimization/random-number-generator-17366

#### 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 ...

#### Solution Summary

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

\$2.49