Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atmos-rng is a randomness generator based off of atmospheric noise instead of math to generate numbers, make choices, and shuffle lists. It does what you'd think it does, and can be used as an alternative to "random" and Maaayyybee "secrets" if you want something abit more special.



Updates

09/05/23

  • choice() can now work with strings.
  • shuffle() now has the ability to shuffle strings.



Installation

[Directly from here/this repo.]

[therealOri ~]$ pip install git+https://github.com/therealOri/atmos-rng

or

[From Pypi.]

[therealOri ~]$ pip install atmos-rng



Ussage and Info

import atmos

if __name__ == '__main__':
    atmos.clear() # clears terminal/cmd window.
    number = atmos.randint(0, 10, 1)
    print(number)

    stuff = [69, True, False, 420, 'Apples', 'Bananas', 'Cats', 'Dogs']
    choice = atmos.choice(stuff)
    print(choice)

    scrambled = atmos.shuffle(stuff)
    print(scrambled)

    random_bytes = atmos.gen_bytes(32)
    print(f"{random_bytes}\n{len(random_bytes)}")

    random_bits = atmos.gen_bits(25)
    print(random_bits)

    urlsafe_bytes = atmos.bytes_urlsafe(20)
    print(urlsafe_bytes)

You can find more information here: Documentation.





Support | Buy me a coffee <3

Donate to me here:

image

About

A randomness generator based off of atmospheric noise instead of math to generate numbers, choices, and to shuffle lists.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages