Things in nature do not exist in an infinitely tiled way, and if you want things to create a natural randomness, then you need to use a pseudo-random technique.
When you notice an identifiable feature that repeats itself in a fixed pattern, the natural randomness of its view will collapse immediately.
How to produce a real random stripe, which requires first understanding what is called the maximum common multiple and prime numbers.
If there is a multilayer pattern, and each layer of patterns in accordance with their own mathematical laws in the repetition, then the final overlap produced patterns will be the mathematical pattern of these patterns least common multiple to repeat.
In order to maximize least common multiple, these numbers are best "relative prime" or are prime numbers.
This technique was proposed by Alex Walker, named "Cicada principle".
Application Scenarios:
1. In the picture library, for each picture to make a subtle pseudo-random rotation effect, you can select the specified child element by the prime number to rotate the corresponding angle of a prime number.
2. When you define an animation for an element, you can define multiple animations with different prime numbers.
[CSS disclosure] pseudo-random background