Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A static class interface for generating non-cryptographic randomness.

Notifications You must be signed in to change notification settings

HalfBloodScot/Random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

8 Commits

Repository files navigation

Random

A C++ static class interface for generating non-cryptographic randomness.

Installation

Since Random is only a single header/source class, you can directly add it to your project by downloading the two files and adding #include "Random.h" in your project.

Example Usage

#include <iostream>
#include "Random.h"
int main() {
 //Generate random float in range [1, 12]
 float x = Random::nextFloat(1, 12);
 
 //Generate random int in rage [0, 10]
 int y = Random::nextInt(10);
 
 return 0;
}

About

A static class interface for generating non-cryptographic randomness.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /