Array Generators
random_array
Generates a random array of integers.Number of elements in the array
Minimum value of the elements
Maximum value of the elements
Array containing random integers
Example
random_dynamicarray
Generates a random dynamic array of integers.Number of elements in the array
Minimum value of the elements
Maximum value of the elements
DynamicArray containing random integers
Stack Generators
random_stack
Generates a random stack of integers.Number of elements in the stack
Minimum value of the elements
Maximum value of the elements
Stack containing random integers
linear_stack
Generates a stack with sequential integers.Number of elements in the stack
Starting value
Maximum value (not used, kept for API consistency)
Stack containing sequential integers starting from min_val
random_dynamic_stack
Generates a random dynamic stack of integers.Number of elements in the stack
Minimum value of the elements
Maximum value of the elements
DynamicStack containing random integers
linear_dynamic_stack
Generates a dynamic stack with sequential integers.Number of elements in the stack
Starting value
Maximum value (not used)
DynamicStack containing sequential integers
Queue Generators
random_queue
Generates a random queue of integers.Number of elements in the queue
Minimum value of the elements
Maximum value of the elements
Queue containing random integers
linear_queue
Generates a queue with sequential integers.Number of elements in the queue
Starting value
Maximum value (not used)
Queue containing sequential integers
random_dynamic_queue
Generates a random dynamic queue of integers.Number of elements in the queue
Minimum value of the elements
Maximum value of the elements
DynamicQueue containing random integers
linear_dynamic_queue
Generates a dynamic queue with sequential integers.Number of elements in the queue
Starting value
Maximum value (not used)
DynamicQueue containing sequential integers
Deque Generators
random_deque
Generates a random deque of integers.Number of elements in the deque
Minimum value of the elements
Maximum value of the elements
Deque containing random integers added from both ends
Linked List Generators
random_linked_list
Generates a random singly linked list of integers.Number of nodes in the linked list
Minimum value of the elements
Maximum value of the elements
LinkedList containing random integers
linear_linked_list
Generates a singly linked list with sequential integers.Number of nodes in the linked list
Starting value
Maximum value (not used)
LinkedList containing sequential integers
random_doubly_linked_list
Generates a random doubly linked list of integers.Number of nodes in the list
Minimum value of the nodes
Maximum value of the nodes
DoublyLinkedList containing random integers
linear_doubly_linked_list
Generates a doubly linked list with sequential integers.Number of nodes in the list
Starting value
Maximum value (not used)
DoublyLinkedList containing sequential integers
Tree Generators
random_binary_tree
Generates a random binary tree.Number of nodes in the tree
Tree with randomly structured nodes
Example
random_binary_tree_node
Generates a random binary tree node structure.Number of nodes in the tree
Root TreeNode of a randomly structured binary tree
Heap Generators
random_heap
Generates a random heap.Number of nodes in the heap
Heap containing random integers from 0 to 100
Example
Trie Generators
random_trie
Generates a random trie with random words.Number of words to insert into the trie
Trie containing n random words (1-10 characters each)
Example
Graph Generators
random_adjacency_matrix_graph
Generates a random unweighted graph using adjacency matrix representation.Number of vertices
Probability of edge existence between any two vertices (0.0 to 1.0)
If True, creates directed edges
Graph with n vertices labeled A, B, C, etc.
random_adjacency_matrix_weighted_graph
Generates a random weighted graph using adjacency matrix representation.Number of vertices
Probability of edge existence between vertices
If True, creates directed edges
Weighted graph with edge weights from 1 to 10
random_adjacency_list_graph
Generates a random unweighted graph using adjacency list representation.Number of vertices
Probability of edge existence between vertices
If True, creates directed edges
Graph with n vertices labeled A, B, C, etc.
random_adjacency_list_weighted_graph
Generates a random weighted graph using adjacency list representation.Number of vertices
Probability of edge existence between vertices
If True, creates directed edges
Weighted graph with edge weights from 1 to 10