Coder Social home page Coder Social logo

dannyward630 / esinxe-random-number-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 40 KB

Function-Based Random Number Generator

License: MIT License

Python 22.17% C# 36.51% C++ 20.89% C 9.19% Ruby 11.24%
procedural-generation python random randomnumbergenerator rng csharp c cpp ruby

esinxe-random-number-generator's Introduction

This is a Random Number Generator (RNG) for Python, C#, C++, C and Ruby (Other languages coming soon)

Version 1.0.0 @ 12/5/2022

Author: Danny Ward

This is a unique generator in that it chooses value y from key x using the function e^sin(x^e), instead of running values through an algorithm.

The primary advantage this RNG has over others I will demonstrate by an example: If you want to generate the nth random value in a series beginning at the seed value, a standard generator would calculate every value from the seed until the nth. By using a function instead of an algorithm, this generator can calculate the nth value instantly, without having to cycle through every previous one. In certain applications, especially in the gaming industry, this can become a bottleneck when procedurally generating terrain far from the starting (seed) value. I discovered the issue earlier in 2022 when developing a Minecraft clone.

I can't find any repetitions in the first 100 billion digits, but if you can find any please bring it to my notice. I am not experienced in detecting patterns in data sets, so any feedback would be appreciated.

As you can probably see, this project in it's infancy. Any comments, tips or suggestions would be greatly appreciated.

esinxe-random-number-generator's People

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.