Skip to content
Courses
DSA to Development
Machine Learning & Data Science
Generative AI & ChatGPT
Become AWS Certified
DSA Courses
Data Structure & Algorithm(C++/JAVA)
Data Structure & Algorithm(Python)
Data Structure & Algorithm(JavaScript)
Programming Languages
CPP
Java
Python
JavaScript
C
All Courses
Tutorials
Python Tutorial
Taking Input in Python
Python Operators
Python Data Types
Python Loops and Control Flow
Python Conditional Statements
Python Loops
Python Functions
Python OOPS Concept
Python Data Structures
Python Exception Handling
Python File Handling
Python Exercises
Java
Learn Java Programming Language
Java Collections
Java 8 Tutorial
Java Programs
Java Interview Questions
Java Interview Questions
Core Java Interview Questions-Freshers
Java Multithreading Interview Questions
OOPs Interview Questions and Answers
Java Exercises
Java Quiz
Java Quiz
Core Java MCQ
Java Projects
Advance Java
Spring Tutorial
Spring Boot Tutorial
Spring Boot Interview Questions
Spring MVC Tutorial
Spring MVC Interview Questions
Hibernate Tutorial
Hibernate Interview Questions
Programming Languages
JavaScript
C++
R Tutorial
SQL
PHP
C#
C
Scala
Perl
Go Language
Kotlin
System Design
System Design Tutorial
Software Design Patterns
System Design Roadmap
Top 10 System Design Interview Questions and Answers
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competitive Programming
Multiple Choice Quizzes
Aptitude for Placements
Computer Science Subjects
Operating System
DBMS
Computer Networks
Engineering Mathematics
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
DevOps
GIT
AWS
Docker
Kubernetes
Microsoft Azure Tutorial
Google Cloud Platform
Linux
Linux Tutorial
Linux Commands A-Z
Linux Commands Cheatsheet
File Permission Commands
Linux System Administration
Linux File System
Linux Shell Scripting
Linux Networking
Linux Interview Questions
Software Testing
Software Testing Tutorial
Software Engineering Tutorial
Testing Interview Questions
Jira
Databases
DBMS Tutorial
SQL Tutorial
PostgreSQL Tutorial
MongoDB Tutorial
SQL Interview Questions
MySQL Interview Questions
PL/SQL Interview Questions
Android
Android Tutorial
Android Studio Tutorial
Kotlin For Android
Android Projects
Android Interview Questions
6 Weeks of Android App Development
Excel
MS Excel Tutorial
Introduction to MS Excel
Data Analysis in Excel
Basic Excel Formulas & Functions
Data Analysis in Advanced Excel
Workbooks
Statistical Functions
Data Visualization in Excel
Pivot Tables in Excel
Excel Spreadsheets in Python
Basic Excel Shortcuts
Mathematics
Number System
Algebra
Linear Algebra
Trigonometry
Set Theory
Statistics
Probability
Geometry
Mensuration
Logarithms
Calculus
DSA
Data Structures
Arrays
Matrix
Strings
Linked List
Stack
Queue
Tree
Heap
Hashing
Graph
Set Data Structure
Map Data Structure
Advanced Data Structure
Data Structures Tutorial
Algorithms
Analysis of Algorithms
Design and Analysis of Algorithms
Asymptotic Analysis
Asymptotic Notations
Worst, Average and Best Cases
Searching Algorithms
Linear Search
Binary Search
Searching Algorithms Tutorial
Sorting Algorithms
Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Counting Sort
Radix Sort
Bucket Sort
Sorting Algorithms Tutorial
Greedy Algorithms
Dynamic Programming
Graph Algorithms
Pattern Searching
Recursion
Backtracking
Divide and Conquer
Mathematical Algorithms
Geometric Algorithms
Bitwise Algorithms
Randomized Algorithms
Branch and Bound
Algorithms Tutorial
DSA Tutorial
Practice
All DSA Problems
Problem of the Day
Company Wise Coding Practice
Amazon
Microsoft
Flipkart
Explore All
GfG SDE Sheet
Practice Problems Difficulty Wise
School
Basic
Easy
Medium
Hard
Language Wise Coding Practice
CPP
Java
Python
Curated DSA Lists
Beginner's DSA Sheet
Top 50 Array Problems
Top 50 String Problems
Top 50 DP Problems
Top 50 Graph Problems
Top 50 Tree Problems
Competitive Programming
Company Wise SDE Sheets
Facebook SDE Sheet
Amazon SDE Sheet
Apple SDE Sheet
Netflix SDE Sheet
Google SDE Sheet
DSA Cheat Sheets
SDE Sheet
DSA Sheet for Beginners
FAANG Coding Sheet
Product-Based Coding Sheet
Company-Wise Preparation Sheet
Top Interview Questions
Puzzles
All Puzzles
Top 100 Puzzles Asked In Interviews
Top 20 Puzzles Commonly Asked During SDE Interviews
Data Science
Python Tutorial
R Tutorial
Machine Learning
Data Science using Python
Data Science using R
Data Science Packages
Pandas Tutorial
NumPy Tutorial
Data Visualization
Python Data Visualization Tutorial
Data Visualization with R
Data Analysis
Data Analysis with Python
Data Analysis with R
Deep Learning
NLP Tutorial
Web Tech
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
PHP Tutorial
ReactJS Tutorial
NodeJS Tutorial
Bootstrap Tutorial
Typescript
Web Development Using Python
Django
Django Tutorial
Django Projects
Django Interview Questions
Flask
Flask Tutorial
Flask Projects
Flask Interview Questions
Postman
Github
Cheat Sheets
HTML Cheat Sheet
CSS Cheat Sheet
JavaScript Cheat Sheet
React Cheat Sheet
Angular Cheat Sheet
jQuery Cheat Sheet
Bootstrap Cheat Sheet
Learn Complete Web Development
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Linked List
1.1k+ articles
Pattern Searching
610+ articles
Analysis of Algorithms
370+ articles
DSA
>
Algorithms
>
Randomized
Randomized
68 posts
Popular Articles
Recent Articles
Randomized Algorithms
Last Updated: 02 December 2024
Randomized algorithms in data structures and algorithms (DSA) are algorithms that use randomness in their computations to achieve a desired
...read more
Algorithms
Randomized
DSA
Generating Random String Using PHP
Last Updated: 19 September 2024
Generating a random string involves creating a sequence of characters where each character is selected unpredictably from a defined set (e.g
...read more
Hash
Randomized
Technical Scripter
Geek on the Top
Web Technologies
PHP-string
PHP
PHP Programs
DSA
Shuffle or Randomize a list in Java
Last Updated: 09 September 2021
Shuffling a listCollections.shuffle() is used to shuffle lists in java.Class hierarchy:java ↳ util ↳ CollectionsSyntax:Collection
...read more
Java
Randomized
Java Programs
Java-List-Programs
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Greedy
2k+ articles
Algorithms
2k+ articles
Linked List
1.1k+ articles
Pattern Searching
610+ articles
Analysis of Algorithms
370+ articles
QuickSort using Random Pivoting
Last Updated: 14 September 2023
In this article, we will discuss how to implement QuickSort using random pivoting. In QuickSort we first partition the array in place such t
...read more
Sorting
Randomized
DSA
Random Walk (Implementation in Python)
Last Updated: 06 November 2021
Introduction A random walk is a mathematical object, known as a stochastic or random process, that describes a path that consists of a succe
...read more
Randomized
Python
DSA
Estimating the value of Pi using Monte Carlo
Last Updated: 28 July 2022
Monte Carlo estimationMonte Carlo methods are a broad class of computational algorithms that rely on repeated random sampling to obtain nume
...read more
Algorithms
Mathematical
Randomized
Project
DSA
Simulated Annealing
Last Updated: 08 April 2024
Problem : Given a cost function f: R^n -- R, find an n-tuple that minimizes the value of f. Note that minimizing the value of a function is
...read more
Java
Algorithms
Mathematical
Randomized
DSA
Shuffle a deck of cards
Last Updated: 21 June 2023
Given a deck of cards, the task is to shuffle them. Asked in Amazon InterviewPrerequisite : Shuffle a given arrayAlgorithm:1. First, fill th
...read more
Randomized
DSA
Fermat Method of Primality Test
Last Updated: 01 June 2023
Given a number n, check if it is prime or not. We have introduced and discussed the School method for primality testing in Set 1.Introductio
...read more
Mathematical
Randomized
Modular Arithmetic
Prime Number
number-theory
DSA
Randomized Algorithms | Set 2 (Classification and Applications)
Last Updated: 01 June 2023
We strongly recommend to refer below post as a prerequisite of this. Randomized Algorithms | Set 1 (Introduction and Analysis)Classification
...read more
Randomized
DSA
Randomized Algorithms | Set 1 (Introduction and Analysis)
Last Updated: 17 March 2023
What is a Randomized Algorithm?An algorithm that uses random numbers to decide what to do next anywhere in its logic is called a Randomized
...read more
Randomized
DSA
Birthday Paradox
Last Updated: 19 May 2023
How many people must be there in a room to make the probability 100% that at-least two people in the room have same birthday?Answer: 367 (si
...read more
Mathematical
Randomized
Probability
DSA
K’th Smallest/Largest Element in Unsorted Array | Expected Linear Time
Last Updated: 18 September 2023
Prerequisite: K’th Smallest/Largest Element in Unsorted Array | Set 1Given an array and a number k where k is smaller than the size of the
...read more
Arrays
Order-Statistics
Microsoft
Cisco
VMWare
Searching
Randomized
ABCO
Quick Sort
Arrays
DSA
Reservoir Sampling
Last Updated: 30 October 2023
Reservoir sampling is a family of randomized algorithms for randomly choosing k samples from a list of n items, where n is either a very lar
...read more
Articles
Mathematical
Randomized
DSA
Shuffle a given array using Fisher–Yates shuffle Algorithm
Last Updated: 19 December 2022
Given an array, write a program to generate a random permutation of array elements. This question is also asked as "shuffle a deck of cards"
...read more
Mathematical
Randomized
DSA
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !