Python Forum
Can't Get Random Module! Pls Help!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't Get Random Module! Pls Help!
#2
random is a part of Standard Library.
This mean that no installed is needed.
E:\div_code
λ python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>>
>>> random.randint(1, 10)
4
>>> random.randint(1, 10)
2
>>>
(Aug-24-2019, 09:52 AM)VictorVictus Wrote: when I type this, Pycharm throws an error "No Module named Random"
It's not capitalized Random,it's import random
Reply


Messages In This Thread
RE: Can't Get Random Module! Pls Help! - by snippsat - Aug-24-2019, 10:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  <while> cycle is not interrupted when using the <random>module ShityCoder 3 2,328 Sep-04-2020, 04:05 PM
Last Post: ShityCoder
  Some help with Classes and the random module please? :) AlluminumFoil 2 2,298 Jan-08-2020, 11:03 PM
Last Post: AlluminumFoil
  Question about the Random Module Exsul 1 2,079 Mar-13-2019, 02:06 AM
Last Post: ichabod801
  Random module Python 3.6 daryl_uk 1 2,377 Oct-25-2018, 12:09 AM
Last Post: micseydel
  Random module works in idle but not terminal. ottowiser 3 5,704 Apr-11-2018, 10:59 PM
Last Post: ottowiser
  random module in while loops yuvalsaias 8 6,906 Feb-03-2017, 03:10 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020