Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How many types of randomized algorithm and which one is best, efficient?
Posted
Comments
Sergey Alexandrovich Kryukov 11-Mar-12 16:39pm    
The form of the question "How many..." does not suggest you want to learn random algorithms. Is is a test or interview question. Answering, say, 5 won't add any knowledge or skill. So, this is the abuse of this forum.
--SA
Sergey Alexandrovich Kryukov 11-Mar-12 16:40pm    
As to another question, what is best... "Best" is not defined. It depends. The question would make some sense if it would be needed for some application.
--SA

1 solution

That's not really a question we can answer, "best" and "efficient" are not quantifiable terms.
Is an algorithm the best if it generates the "most random" data? Or generates data the fastest?

If you want true randomness, (or at least about as close as you will get today) have a look here: http://www.random.org/[^]
It's excellent, and quick, but it doesn't use an algorithm...

I suggest that you start reading: Wiki is a good start. http://en.wikipedia.org/wiki/Random_number_generation[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900