Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Number sorting
#1
Hi,
I want to know how you can fill and sort a list of randomly generated integers in a certain range without using any built-in functions or external libraries.
Reply
#2
you can implement any of these sorting algorithms yourself
https://en.wikipedia.org/wiki/Sorting_al...algorithms
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
You should also look into pseudorandom number generators. Linear congruential generators are especially easy to implement.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  find random numbers that are = to the first 2 number of a list. Frankduc 23 3,173 Apr-05-2023, 07:36 PM
Last Post: Frankduc
  matrix number assignement to the random indices juniorcoder 4 1,912 Feb-19-2022, 02:18 PM
Last Post: juniorcoder
  Generate random hex number ZYSIA 1 11,493 Jul-16-2021, 09:21 AM
Last Post: DeaD_EyE
  Random Number Repeating Tzenesh 5 4,004 Jan-13-2021, 10:00 PM
Last Post: deanhystad
  Random number generator charlottelol 5 3,179 Nov-10-2020, 10:51 PM
Last Post: deanhystad
  basic random number generator in replace function krug123 2 2,023 Jul-31-2020, 01:02 PM
Last Post: deanhystad
  Help with a random number generator dpcalder 2 2,316 Jun-20-2020, 03:50 AM
Last Post: buran
  Generate only one random number for many tries Bhavika 2 1,721 Mar-29-2020, 12:12 PM
Last Post: Bhavika
  Finding MINIMUM number in a random list is not working Mona 5 3,031 Nov-18-2019, 07:27 PM
Last Post: ThomasL
  same number everytime when using random.randint summeringpainting 5 8,155 Aug-23-2019, 11:01 AM
Last Post: Malt

Forum Jump:

User Panel Messages

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