Skip to content

Instantly share code, notes, and snippets.

Avatar
👽

Jasur Yusupov GooDeeJAY

👽
View GitHub Profile
@GooDeeJAY
GooDeeJAY / ohmyposh_profile.json
Last active September 7, 2022 18:23
OhMyPosh Profile
View ohmyposh_profile.json
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#7f39db",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
@GooDeeJAY
GooDeeJAY / random_generator.md
Last active August 3, 2022 06:20
Creative and fun ways of generating random numbers
View random_generator.md

Fun and creative ways of generating random numbers in python

Here I'm going to show some creative and fun ways of generating random numbers without using random package in python.

Example 1 - Generating random number in range 0-9

When we call time() function of the package time, it returns floating point number - current time in seconds since the Epoch:

>>> time.time()
3392849227.6848479