Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create random pairs
#3
The randomizing of pairs is just what I need. Thanks.
However, the output needs to be in the format of my original code output as I have to allocate rink numbers to the pairings.
The people using this output would not understand a list of 4 elements.
I would need to print it as
Rink 1: 19 and 7 play 14 and 16
This output would then be used manually by the organisers.
Is there a way I can modify your code to present the data this way?
I am a novice at Python and appreciate any ideas.
Reply


Messages In This Thread
Create random pairs - by Dennisp44 - May-31-2018, 11:53 PM
RE: Create random pairs - by buran - Jun-01-2018, 07:16 AM
RE: Create random pairs - by Dennisp44 - Jun-02-2018, 12:25 AM
RE: Create random pairs - by buran - Jun-02-2018, 05:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star Pairs Trading Simulation Kiitoos 0 288 Feb-19-2024, 08:27 PM
Last Post: Kiitoos
  Sample random, unique string pairs from a list without repetitions walterwhite 1 531 Nov-19-2023, 10:07 PM
Last Post: deanhystad
  [split] why can't i create a list of numbers (ints) with random.randrange() astral_travel 7 1,649 Oct-23-2022, 11:13 PM
Last Post: Pedroski55
  Pairs of multiplied prime number--->N Frankduc 13 3,752 Jan-16-2022, 01:52 PM
Last Post: Frankduc
  Extracting unique pairs from a data set based on another value rybina 2 2,381 Feb-12-2021, 08:36 AM
Last Post: rybina
  How to create random hex message korenron 6 3,040 Jan-26-2021, 10:42 AM
Last Post: korenron
  Key value pairs assistance UtiliseIT 2 2,714 May-09-2019, 09:26 AM
Last Post: UtiliseIT

Forum Jump:

User Panel Messages

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