top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

C: Difference between random number generator and pseudo random number generator ?

+2 votes
354 views
C: Difference between random number generator and pseudo random number generator ?
posted Dec 12, 2013 by Neeraj Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

A pseudorandom number generator is an algorithm for generating a sequence of numbers that approximates the properties of random numbers. The sequence is not truly random in that it is completely determined by a relatively small set of initial values, called the PRNG's state, which includes a truly random seed.

Where as A random number generator is an algorithm or physical device designed to generate a sequence of numbers or symbols that lack any pattern, i.e. appear random. In practice hardware random generators are used which generates the number based on a physical process rather then an algo.

Pseudorandom numbers are important in practice for their speed in number generation and their reproducibility.

answer Dec 12, 2013 by Satish Mishra
Similar Questions
+4 votes

"Given an array of strings, find the string which is made up of maximum number of other strings contained in the same array. e.g. “rat”, ”cat”, “abc”, “xyz”, “abcxyz”, “ratcatabc”, “xyzcatratabc” Answer: “xyzcatratabc”

+3 votes

A list contains a set of numbers, one number presents once and other numbers present even no. of times. Find out the number that occurs once in the list.

+5 votes

Help me to write a C program which can generate list of numbers which are palindrome in decimal and octal notion. You can take some max as a limit find out all numbers which satisfy the given property between 1 to n.

...