• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How Could I Randomize A Dictionary?

Page 4 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
(I wanted to ask this again because I never got an answer)


How about, instead of attaching a new number to each word and definitions like this:

1
2
3

I attach the words and definitions with only a "1" like this:

1
1
1

Could I randomize the words by just attaching the number 1 in front of it? Or does it have to be more then a single letter?
 
(I wanted to ask this again because I never got an answer)


How about, instead of attaching a new number to each word and definitions like this:

1
2
3

I attach the words and definitions with only a "1" like this:

1
1
1

Could I randomize the words by just attaching the number 1 in front of it? Or does it have to be more then a single letter?
I'm not really following that. You could randomize the words and definition by creating a hash with the words as keys and the definitions as the values. No need for assigning any numbers at all.

You might consider learning perl as it is ideal for text manipulation.
 
I'm not really following that. You could randomize the words and definition by creating a hash with the words as keys and the definitions as the values. No need for assigning any numbers at all.

You might consider learning perl as it is ideal for text manipulation.

Sorry I don't really know how to program.

I was thinking I needed to attach the words and definitions to a number, then randomize the number to randomize the dictionary.
 
If you really don't want to learn how to do it with programming you can probably do it in Excel. Have the entire list in Excel then use the rand function. You can format it the way you want from there.
 
If you really don't want to learn how to do it with programming you can probably do it in Excel. Have the entire list in Excel then use the rand function. You can format it the way you want from there.

That's what I was thinking of doing.

I was thinking I could pay someone to type out all the words and definitions and attach them to a number.

Maybe $50 per letter.
 
I'm sure you can just find a list somewhere that's in CSV and import it. Look back at this thread and look at the list I used, it might be something you can just import in Excel.
 
Gizmo Dictionary <<< seriously get a patent on that.

When you want to learn the meaning of a word but have to go through thousands of random words before you find what you are looking for!
 
I just think it's fun to read random words and definitions....

Sort of like a 'Word Of The Day' calendar but on steroids.
 
why on earth would you try to put the complete volume of words into memory at one time?
Just select a file at random, then select a word/definition at random from inside the file?


A much more efficient way to accomplish this would be a SQL database and about a dozen lines of SQL code and a dozen lines of code in C#.

Declare @RecordCount Int
Declare @randomnumber Int
Set @RecordCount = Select Count(*) from Dictionary
Set @randomnumber = RAND(RecordCount)

Select ID, Word, Definition from Dicitonary where ID=@RandomNumber

Then you could use an ADO.net call for SQLDataReader in C# to run the SQL procedure.


unless the intention is to find the most obscure impractical way of doing this? I'm sure x86 assembly would present a solution...
 
I just think it's fun to read random words and definitions....

Sort of like a 'Word Of The Day' calendar but on steroids.

We've provided tons of info, and even code. It would really not be hard to figure out the rest from here or even get ChatGPT to do a big chunk of the work for you.
 
I just think it's fun to read random words and definitions....

Sort of like a 'Word Of The Day' calendar but on steroids.
If you think hard enough about it all letters and words are random so going alphabetically can pass as random. Today's word is a.
 
(I wanted to ask this again because I never got an answer)


How about, instead of attaching a new number to each word and definitions like this:

1
2
3

I attach the words and definitions with only a "1" like this:

1
1
1

Could I randomize the words by just attaching the number 1 in front of it? Or does it have to be more then a single letter?
Why can't you just pick up a dictionary and open a random page?
 
Back
Top