Giter Club home page Giter Club logo

rngwr's Introduction

RNGWR

RNGWR (Random Number Generator Without Repetition) is a C++ program that generates a sequence of random numbers without repetition at constant speed (O(1)) and memory consumption (O(1)). The program offers four different strategies for generating random numbers, named 'SUPER1', 'SUPER2', 'SUPER3', and 'SUPER4', which balance between computing speed and random quality using a mix of sampling and cryptographic techniques.

Simple utilization

To use the program, you can check the main file located at ./src/main.cpp. To compile the program, simply run the 'make' command in the terminal. Once compiled, you can run the program using the command './bin/program'.

The program generates a sequence of random numbers, and each number is unique. For example, when num_samples=5 and max_values=5 the program may output "1 5 2 3 0", "0 4 3 2 5" or "1 4 0 5 2", ... depending on the random seed.

Benchmark

The command 'make test' generate the program './bin/test_program'. It will run unit tests, produces OPERM5 test based on chi2, uniform test based on chi2 and the computing speed (micro-seconds) for generating 10,000 numbers.

rngwr's People

Contributors

pierrickpochelu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.