Content-Length: 243941 | pFad | http://github.com/LEVNI-Alii/random

02 GitHub - LEVNI-Alii/random: Python random library for c++
Skip to content

LEVNI-Alii/random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

random

Python random library for c++

#include <iostream>
#include "random.hpp"

int main() {
	auto& r = random; // aliasing
	r.randInt(5, 10);
	random.randFloat();
	if (random.randBool())
		cout << random.rand<unsigned long long>(50) << '\n';
	random.choice({9,3,54,8});
	random.choice({"elma", "armut", "cilek", "yarak"});
	string falanke = "filanke";
	random.choice(falanke);
	// or random.choice("filanke"s);
	random.randRange(50, 10);
	cout << random.randChar() << '\n';
	cout << random.randLetter() << '\n';
	cout << random.randSymbol() << '\n';
};

About

Python random library for c++

Topics

Resources

Stars

Watchers

Forks

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/LEVNI-Alii/random

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy