To make a random number generator without using the random module

Generates random numbers between -1 and 1.

It was built using python and some in built libraries.

As a beginner I was not aware of many python libraries.

As this was my first Hackathon, I am really proud of how it turned out.

# Random numbers between -1 and 1 
from datetime import datetime
import math
# Current Date and  Time
now = datetime.now()

timestamp = datetime.timestamp(now)
print("Timestamp =", timestamp)

seed = timestamp - int(timestamp)
randomnumber = math.exp(seed) - 2

print("Seed =", seed)
print("Random Number = ",randomnumber)  

Built With

Share this project:

Updates

Submission history