I want to randomize a range of numbers without "random.shuffle." Instead it would be using "randint(0, n-1)"
If I put in 4 into the function it could return [1,3,2,0] or [3,1,0,2]. I know that starting with an empty list and running through with a while list would work.
oberlin1988
0
Newbie Poster
Recommended Answers
Jump to PostWhy are you announcing this?
All 2 Replies
TrustyTony
888
pyMod
Team Colleague
Featured Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.