RandomInts 0.0.7__tar.gz → 0.0.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RandomInts
3
- Version: 0.0.7
4
- Summary: A custom random number generator built from scratch. Function #1 Rand() function #2 RandSeed(45).
3
+ Version: 0.0.9
4
+ Summary: A custom random number generator built from scratch. Function #1 Rand() function #2 RandSeed(45)..
5
5
  Author-email: wawa2016-here <lemver2016@gmail.com>
6
6
  Requires-Python: >=3.7
7
7
  Description-Content-Type: text/markdown
8
8
 
9
9
  # RandomInts
10
- And to Import it you use Rand
11
- A custom random number generator built from scratch.
10
+ *A custom random number generator built from scratch.
11
+ *And to Import it you use **import Rand**
12
12
 
13
13
  ## Functions Included:
14
14
  * **Rand()**: Generates a random integer.
@@ -21,7 +21,7 @@ pip install RandomInts
21
21
 
22
22
  ## Quick Start
23
23
  ```python
24
- import RandomInts
24
+ import Rand
25
25
  ```
26
26
 
27
27
  # Try it out
@@ -1,6 +1,6 @@
1
1
  # RandomInts
2
- And to Import it you use Rand
3
- A custom random number generator built from scratch.
2
+ *A custom random number generator built from scratch.
3
+ *And to Import it you use **import Rand**
4
4
 
5
5
  ## Functions Included:
6
6
  * **Rand()**: Generates a random integer.
@@ -13,7 +13,7 @@ pip install RandomInts
13
13
 
14
14
  ## Quick Start
15
15
  ```python
16
- import RandomInts
16
+ import Rand
17
17
  ```
18
18
 
19
19
  # Try it out
@@ -0,0 +1,32 @@
1
+ from datetime import datetime
2
+ import time
3
+
4
+ x = 101
5
+ def Rand():
6
+ start = datetime.now()
7
+ start = start.microsecond
8
+ start = start // 2
9
+ global x
10
+ if not x == 0 and not start == 0:
11
+ x = x - (x - 34) %+ time.time_ns() + time.time_ns() * time.time_ns() // start // datetime.now().microsecond
12
+ if x < 0:
13
+ x = -x
14
+ else:
15
+ x = x -3 // time.time_ns()
16
+ if x < 0:
17
+ x = -x
18
+ return x
19
+
20
+ def RandSeed(Seed):
21
+ start = datetime.now()
22
+ start = start.microsecond
23
+ start = start // 2
24
+ global x
25
+ if not x == 0 and not start == 0:
26
+ x = x - (x - 34) %+ time.time_ns() + time.time_ns() * time.time_ns() // start // datetime.now().microsecond // Seed // datetime.now().microsecond
27
+ x = -x
28
+ else:
29
+ x = x -3 // time.time_ns()
30
+ if x < 0:
31
+ x = -x
32
+ return x
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RandomInts
3
- Version: 0.0.7
4
- Summary: A custom random number generator built from scratch. Function #1 Rand() function #2 RandSeed(45).
3
+ Version: 0.0.9
4
+ Summary: A custom random number generator built from scratch. Function #1 Rand() function #2 RandSeed(45)..
5
5
  Author-email: wawa2016-here <lemver2016@gmail.com>
6
6
  Requires-Python: >=3.7
7
7
  Description-Content-Type: text/markdown
8
8
 
9
9
  # RandomInts
10
- And to Import it you use Rand
11
- A custom random number generator built from scratch.
10
+ *A custom random number generator built from scratch.
11
+ *And to Import it you use **import Rand**
12
12
 
13
13
  ## Functions Included:
14
14
  * **Rand()**: Generates a random integer.
@@ -21,7 +21,7 @@ pip install RandomInts
21
21
 
22
22
  ## Quick Start
23
23
  ```python
24
- import RandomInts
24
+ import Rand
25
25
  ```
26
26
 
27
27
  # Try it out
@@ -1,4 +1,5 @@
1
1
  README.md
2
+ Rand.py
2
3
  pyproject.toml
3
4
  RandomInts.egg-info/PKG-INFO
4
5
  RandomInts.egg-info/SOURCES.txt
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "RandomInts"
7
+ version = "0.0.9" # <-- Locked in at 0.0.9
8
+ authors = [
9
+ { name="wawa2016-here", email="lemver2016@gmail.com" },
10
+ ]
11
+ description = "A custom random number generator built from scratch. Function #1 Rand() function #2 RandSeed(45).."
12
+ readme = { file = "README.md", content-type = "text/markdown" }
13
+ requires-python = ">=3.7"
14
+ dependencies = [] # <-- Completely empty to avoid installation errors
15
+
16
+ [tool.setuptools]
17
+ py-modules = ["Rand"] # <-- Properly packages your loose Rand.py file
@@ -1,19 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=61.0.0"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "RandomInts"
7
- version = "0.0.7"
8
- authors = [
9
- { name="wawa2016-here", email="lemver2016@gmail.com" },
10
- ]
11
- description = "A custom random number generator built from scratch. Function #1 Rand() function #2 RandSeed(45)."
12
- readme = "README.md"
13
- requires-python = ">=3.7"
14
- dependencies = [
15
-
16
- ]
17
-
18
- [tool.setuptools.packages.find]
19
- include = ["Game code*"]
File without changes