1.

How many Pseudo-random number engines are there?(a) 1(b) 2(c) 3(d) 4The question was posed to me during an interview for a job.My question comes from Generators topic in portion Class Hierarchies, Library & Containers of C++

Answer»

Right answer is (c) 3

To explain: There are THREE TYPES of Pseudo-random number engines BASED on the algorithm they use. They are linear_congruential_engine, mersenne_twister_engine and subtract_with_carry_engine.



Discussion

No Comment Found

Related InterviewSolutions