wormhole/test/random_test.cpp
nekobit f57708a0c9 Scrubbing... We're back
FossilOrigin-Name: 4fde441d7ec8011e697a949b4e24b9e2f22abdfe44732e55411bd927abd62979
2023-04-10 13:58:40 +00:00

22 lines
437 B
C++

#include <cassert>
#include <cmath>
#include <iostream>
#include "random.h"
int main()
{
Random rng{};
constexpr int start = 50;
const char sym = rng.generate_token(1)[0];
for (int i = 0; i < start; ++i)
{
std::cout << std::string((start-i), sym);
std::cout << rng.generate_token(i);
std::cout << rng.generate_token(std::abs(i));
std::cout << std::string((start-i), sym) << '\n';
}
std::cout << std::endl;
return 0;
}