wordlist, random word order

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
God
Posts: 2
Joined: 03 Oct 2013, 10:03

wordlist, random word order

03 Oct 2013, 10:06

i have a text file with 20000 words in alphabetical order. how can i randomize them so they're not in alphabetical order. its a word list basically
Hamlet
Posts: 32
Joined: 02 Oct 2013, 09:55
Location: Seoul, Korea

Re: wordlist, random word order

03 Oct 2013, 10:08

Welcome Aboard God (really ? Are you..?)

We have lots options in it already. Could you please see the manual again ?
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: wordlist, random word order

03 Oct 2013, 10:10

Load the file into a variable and use:

Code: Select all

Sort, Var, D`n Random
My Scripts and Functions: V1  V2
Hamlet
Posts: 32
Joined: 02 Oct 2013, 09:55
Location: Seoul, Korea

Re: wordlist, random word order

03 Oct 2013, 10:11

Do you like this code, God ?

Code: Select all

_ := RegExReplace( "The winner takes it all", " ", "`n" )
Sort, _ , Random
Msgbox % RegExReplace( _ , "`n", " " )
User avatar
joedf
Posts: 8958
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: wordlist, random word order

03 Oct 2013, 11:50

Hamlet wrote:Welcome Aboard God (really ? Are you..?)

We have lots options in it already. Could you please see the manual again ?
Haha nice :lol:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Google [Bot], Joey5, Rohwedder and 318 guests