The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Generate A Random Integer In Python

TODO: Pull subtitle into page object
Code
from random import randint

random_num = randint(0, 10)
print(random_num)
Results
0

Notes

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Generate A Random Integer In Python

This code will generate a random number 

-- code
-- python

from random import randint

random_num = randint(0, 10)
print(random_num)

-- results/

0

-- /results



-- notes

- Gives numbers between 0 and 10 (inclusive of both 0 and 10)

- It's possilbe to set a specific seed which will always
produce the same numbers (which I've found useful for testing)


-- todo

[] Make and link to a post with random floats

-- categories
-- Python 

-- metadata
-- id: 01envfbb
-- date: 2020-10-29 20:43:34
-- status: published
-- type: post
-- site: aws