Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need suggestions for not so random number
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Need suggestions for not so random number
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01084023
Message ID:
01084023
Views:
70
I am looking for suggestions for the following algorithm:

Say I have a “seed” number (or string of digits or letters). E.g. “382622” (does not matter how many digits, so if you think it should be a certain number of digits, please let me know). This “seed” number will never change.

Then I want to generate a number or a string of digits (or letters) that I can “equate” to the above mentioned “seed” number. And I want the generated number or string to be different every time I “request” it. The key is that the newly generated number or string can be equated to the "seed" number. It can be "equated" via a formula or a function or whatever.

I hope I am clear in my explanation.

Thank you in advance for any suggestions.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform