Skip to main content

No project description provided

Project description

Numering

Yet another number package.

  • random_float

    • random float number in range of A and B
  • random_element

    • random element from list
  • sizeof

    • size of an element

Examples

Generating random float number

import numering

a, b = 1, 2

print(numering.random_float(a, b), decimals=3)

# 1.736

Selecting random element from list

import numering

my_list = [1, 2, 3, 4, 5]

print(numering.random_element(my_list))

# 3

Getting size of element (list, tuple, dict)

import numering

my_list = [1, 2, 3, 4, 5]

print(numering.sizeof(mylist))

# 4

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numering-0.9.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page