CS @ HOLSWORTHY COMMUNITY COLLEGE
>>> Computer Science
Home
Theory
1. Computer Systems
2. Computing Hardware
3. Software
4. Representation of Data
5. Databases
6. Networks & Communication
7. Programming
Python
data types
variables
casting
for loop
while
if else
elif
random
list
procedures
functions
Debugger
Zen of Python
Advanced Python
Programming
Pseudo Code
Python intro
Python Basics
Python Intermediate
HTML, CSS & JavaScript
Linux
More...
Gaimes
History
RANDOM
Random allows you to choose a random item from lots of sources.
To use random you need to inport it at the top of your program
Simple Random Numer:
import
random
randomnumber = random.randint(
1
,
5
)
#Random whole number between 1 and 5
print
(randomnumber