Tagged articles
randomization
16 articles · Page 1 of 1
Learn how to use PHP's built-in shuffle() function to randomly reorder array elements, with clear syntax explanation, step-by-step code examples, output demonstration, and important considerations such as in‑place modification, handling associative or multidimensional arrays, and preserving original data when needed.
BackendShufflearray
0 likes · 3 min read

Learn how to randomize array order in PHP using built-in functions like shuffle() and array_rand(), with clear code examples and a practical scenario of assigning students to classes, plus step-by-step explanations of each method’s behavior and usage.
PHPShufflearray
0 likes · 2 min read

This article explains the PHP shuffle() function, detailing its syntax, behavior of modifying the original indexed array, return value, usage with both indexed and associative arrays, and provides multiple code examples demonstrating random reordering and the effect on array keys.
BackendPHPShuffle
0 likes · 5 min read

This article explains PHP's shuffle() function, detailing its syntax, behavior of modifying the original array, return value, usage with indexed and associative arrays, and provides multiple code examples illustrating how to randomize array elements.
PHPShuffleTutorial
0 likes · 4 min read

This article explains PHP's shuffle() function, its syntax, behavior on indexed and associative arrays, and provides code examples demonstrating how to randomize array elements and handle the function's boolean return value in practice.
BackendShufflearray
0 likes · 5 min read

This article explains the PHP shuffle function, its syntax, how it directly modifies an array to randomize element order, provides example code with output, and discusses important considerations such as preserving the original array and handling associative or multidimensional arrays.
PHPShufflearray
0 likes · 3 min read

This article explains the PHP shuffle() function, demonstrates how to create arrays, use shuffle() to randomize their elements, display the results, and shows additional uses such as generating random numbers with range() and shuffle(), providing clear code examples throughout.
BackendPHPShuffle
0 likes · 4 min read

This article explains how to use PHP's built-in shuffle() function to randomly reorder array elements, covering its syntax, return value, example code for indexed and associative arrays, handling of multidimensional arrays, and important considerations such as in‑place modification and preserving original data.
BackendPHPShuffle
0 likes · 3 min read

This article explains PHP's shuffle() function, its syntax, behavior, return value, and demonstrates how it randomizes both indexed and associative arrays with code examples, highlighting that it modifies the original array and reindexes non‑sequential keys.
BackendShuffleTutorial
0 likes · 5 min read

This article explains how PHP's str_shuffle() function can randomly reorder characters in a string, demonstrates basic usage and advanced scenarios such as generating verification codes, and outlines important limitations and recommendations for reliable implementation.
PHPString ManipulationVerification Code
0 likes · 4 min read

This article explains the PHP shuffle() function, detailing its syntax, return behavior, usage examples, and important considerations such as its effect on the original array, limitations with associative arrays, and handling of duplicate elements, providing a practical code demonstration.
PHPShufflearray
0 likes · 3 min read

This article explains Groovy’s default‑parameter feature, shows how to embed scripts and random values in defaults, demonstrates practical API‑testing examples, and compares the execution cost of using default values versus explicit arguments in a high‑iteration performance test.
API testingDefault ParametersGroovy
0 likes · 6 min read

This article explains how to combine traffic replay and custom request generation using a segment‑random approach, provides two Java implementations (CPU‑heavy and memory‑heavy), shows test scripts and a full project example, and demonstrates that the generated load matches the configured request distribution.
JavaTraffic Replayload-testing
0 likes · 11 min read

The article explains PHP’s str_shuffle() function, detailing its syntax, parameter description, return value, and provides a complete example that demonstrates how to assign a string, shuffle it with str_shuffle, and output the randomized result.
PHPStringrandomization
0 likes · 1 min read

This article introduces Didi's adaptive grouping algorithm, which enhances the uniformity of user allocation in AB experiments by replacing traditional complete randomization with a single-pass method that balances observed metrics across groups, and demonstrates its effectiveness through large‑scale experimental results.
AB TestingAlgorithmDidi
0 likes · 11 min read


Didi TechMay 28, 2020 · Artificial Intelligence
Didi’s AI Lab introduces an Adaptive grouping algorithm for its Apollo AB‑testing platform that allocates users in a single pass using direct and indirect scores, achieving over 95 % balance probability and reducing group imbalance from 14 % (CR) and 2.7 % (RR) to under 0.8 %.
AB TestingAlgorithmadaptive grouping
0 likes · 11 min read
