Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little confused with RAND()
Message
 
 
To
01/04/2009 08:18:38
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01392453
Message ID:
01392547
Views:
49
>>Hi,
>>
>>Here is an example and the results with question inline:
>>
>>

>>SET DECIMALS TO 6
>>ldBaseDate = {^1900-01-01}
>>ldCurrDate = DATE()
>>RAND(ldCurrDate - ldBaseDate)
>
>I see you've solved your original problem. I'm just wondering why you're seeing RAND() this way. Is there some
reason RAND(-1) won't work for you?
>
>Tamar

I use this "RAND(()" approach to generate the same key/code on my computer and the customer computer. The customer does not know that I use this routine and thinks that it is completely random. Once I tell them to enter the returned "code/key" the program verifies it (using the same code I use on my PC) and can perform a procedure that should only be performed under "my supervision." I hope my explanation is clear.
"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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform