C++#include <bits/stdc++.h>
using namespace std;
void rand_color() {
int num = rand() % 7;
if (num == 0)
cout << "\\color{red}";
else if (num == 1)
cout << "\\color{orange}";
else if (num == 3)
cout << "\\color{green}";
else if (num == 4)
cout << "\\color{cyan}";
else if (num == 5)
cout << "\\color{blue}";
else if (num == 6)
cout << "\\color{purple}";
else
cout << "\\color{yellow}";
}
void rand_size() {
int num = rand() % 4;
if (num == 1)
cout << "\\small ";
else if (num == 2)
cout << "\\large ";
else if (num == 3)
cout << "\\huge ";
}
void rand_YITUO() {
rand_color();
rand_size();
int k=rand()%100;
for(int i=1;i<=k;i++)cout<<(rand()%2?"_":"^")<<"{\\lambda";
while(k--)cout<<'}';
}
int main() {
srand(time(0));
cout << "$$";
int k=rand()%10;
while(k--){rand_YITUO();if(rand()%3==0)cout<<"\\\\";}
cout << "$$";
}
λλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλ