[ ] 1 import random 1 rand = random.randon() 2 print (rand) NameError in () -----> 1 rand = random.randon() 2 print (rand) NameError: name 'random' is not defined SEARCH STACK OVERFLOW 1 rand = random.randint(1,10) 2 print (rand) Traceback (most recent call last) NameError Traceback (most recent call last) in () ----> 1 rand = random.randint(1,10) 2 print (rand) NameError: name 'random' is not defined

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

how do i correct this error in the coe

a
{x} +
Os
0
INSY Coding.ipynb - Colaborato X
@
Os
Import bookmarks... Getting Started Ch_1_456_Solutions.pdf Canvas Login - Office... 5.4 The Binomial Distri... Gepic games store - Go...
▲ INSY Coding.ipynb✩
CO
File Edit View Insert Runtime Tools Help All changes saved
+ Code + Text
[ ]
1 import random
O8
1 rand = random.randon()
2 print (rand)
NameError
function - NameError: name 'ran X
<ipython-input-7-b7f2913997db> in <cell line: 1>()
SEARCH STACK OVERFLOW
NameError
1 rand
2 print (rand)
NameError: name 'random' is not defined
random.randon()
https://colab.research.google.com/drive/1vlY7hCAZJY-zaOWONWxZC6eEgKc-qS8U#scrollTo=vu2vW6MJ8Cd0&uniqifier=1
1 rand = random.randint (1,10)
2 print (rand)
SEARCH STACK OVERFLOW
Generating random float numbex
Traceback (most recent call last)
<ipython-input-8-c1ad87b22fdf> in <cell line: 1>()
1 rand = random.randint(1,10)
2 print (rand)
NameError: name 'random' is not defined
Traceback (most recent call last)
My Questions | bartleby
Os
x +
completed at 12:04 PM
GET - Login - Universit... Adjust Screen Brightn...
New Tab
T
Comment
2020 Chevrolet Spark...
Share
J
RAM
Disk
✿
X
M
=
|||
»
<
Transcribed Image Text:a {x} + Os 0 INSY Coding.ipynb - Colaborato X @ Os Import bookmarks... Getting Started Ch_1_456_Solutions.pdf Canvas Login - Office... 5.4 The Binomial Distri... Gepic games store - Go... ▲ INSY Coding.ipynb✩ CO File Edit View Insert Runtime Tools Help All changes saved + Code + Text [ ] 1 import random O8 1 rand = random.randon() 2 print (rand) NameError function - NameError: name 'ran X <ipython-input-7-b7f2913997db> in <cell line: 1>() SEARCH STACK OVERFLOW NameError 1 rand 2 print (rand) NameError: name 'random' is not defined random.randon() https://colab.research.google.com/drive/1vlY7hCAZJY-zaOWONWxZC6eEgKc-qS8U#scrollTo=vu2vW6MJ8Cd0&uniqifier=1 1 rand = random.randint (1,10) 2 print (rand) SEARCH STACK OVERFLOW Generating random float numbex Traceback (most recent call last) <ipython-input-8-c1ad87b22fdf> in <cell line: 1>() 1 rand = random.randint(1,10) 2 print (rand) NameError: name 'random' is not defined Traceback (most recent call last) My Questions | bartleby Os x + completed at 12:04 PM GET - Login - Universit... Adjust Screen Brightn... New Tab T Comment 2020 Chevrolet Spark... Share J RAM Disk ✿ X M = ||| » <
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Stack
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education