Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random module Python 3.6
#1
Good evening Pythoners,

Can someone point me in the right direction of how to successfully use the random module for Python3.6.

I am slowly loosing my mind over this as all the examples I have come across on the web throws errors. I am particularity interested in generating integer numbers between 1 and a higher number of my choosing.

OS: Ubuntu 18.04LTS
Reply
#2
If you have a question about a specific error, it's best to include the full code and error (ideally a single line of code, whatever is minimal).

It sounds like you want randrange.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  "Random" module is not working as expected Genericgamemaker 1 981 Jul-25-2024, 04:46 PM
Last Post: Gribouillis
  <while> cycle is not interrupted when using the <random>module ShityCoder 3 3,058 Sep-04-2020, 04:05 PM
Last Post: ShityCoder
  Some help with Classes and the random module please? :) AlluminumFoil 2 2,798 Jan-08-2020, 11:03 PM
Last Post: AlluminumFoil
  Can't Get Random Module! Pls Help! VictorVictus 1 9,114 Aug-24-2019, 10:20 AM
Last Post: snippsat
  Question about the Random Module Exsul 1 2,524 Mar-13-2019, 02:06 AM
Last Post: ichabod801
  Random module works in idle but not terminal. ottowiser 3 6,702 Apr-11-2018, 10:59 PM
Last Post: ottowiser
  random module in while loops yuvalsaias 8 9,437 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