You are on page 1of 1

Specifications:

A machine problem which consists of pseudorandom numbers requires the use of built in functions in
Matlab and knowledge of the topic of pseudorandom numbers. Pseudorandom numbers are a sequence
of random numbers that are generated with the numbers repeating after a given set of elements are
completed, it has four variables which consists of the modulo, increment, multiplier, and the seed. The
seed in a given sequence is the starting value, or can be denoted as X0 the next term is computed by
multiplying the seed by the multiplier then adding the increment. After the increment is added the given
value is then divided by the modulus and its remainder will become the next term after the seed. This is
done until the sequence of numbers will eventually repeat itself. The number of elements before the
sequence repeats itself is determined by the modulus, and the number of elements before the repeat is
equal to the modulus.

The program computes basically computes for the remainders and stores it in a vector wherein all the
elements from 1 to 128 are in decimal form. The elements in this vector aremlater converted into
binary, by comparing each element of the vector to the mean of the vector. If the element is smaller
than the mean then it is = 0 then is stored in another vector, if it is greater than 0 then it is equal to 1
then is stored to another vector until all elements of the vector are equal to 128. The program then
displays that vector

You might also like