Python Forum

Full Version: Random Number sorting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
you can implement any of these sorting algorithms yourself
https://en.wikipedia.org/wiki/Sorting_al...algorithms
You should also look into pseudorandom number generators. Linear congruential generators are especially easy to implement.