Skip to content

KyrillosWalid/cpp-randomlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-randomlib

Only C++ Header file gives random (integers - strings - floats - boolean)

It's extremely easy to setup. Just include random.hpp file in your code!

Get Random int

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

using namespace std;

int main(){
    cout<< randint() << "\n";
}

Get Random char

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

using namespace std;

int main(){
    cout<< randchar() << "\n";
}

Get Random char as string

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

using namespace std;

int main(){
    cout<< randcharstr() << "\n";
}

What Can This Code Do for now ?

  • get random integers
  • get random chars
  • get random chars as string

About

Only C++ Header file gives random (integers - strings - floats - boolean)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published