Question: Modulo for random generator

i've a problem to understanding the concept of generating random number by using modulo. The basic modulo , let say a:= e mod m and i want to extend it to

x 0 = given,     x n+1 = P 1 x n + P 2       (mod N)    n = 0,1,2,...     (*)

But then how to implement that modulo to generate the random generator? and my latpop just 32 bits only. anybody would help me??

Please Wait...