Python Forum
RNG; One variable must not be equal to another
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RNG; One variable must not be equal to another
#11
(Oct-10-2018, 01:39 AM)ichabod801 Wrote: It's simpler with random, since random comes with Python.
That's with replacement though.
Reply
#12
(Oct-10-2018, 02:00 AM)micseydel Wrote: That's with replacement though.

Python Docs Wrote:random.sample(population, k)

Return a k length list of unique elements chosen from the population sequence or set. Used for random sampling without replacement.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#13
Oh wow, my mistake.
Reply


Forum Jump:

User Panel Messages

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