× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Random Number Generator
  • From: "alan shore" <SHOREA@xxxxxxxx>
  • Date: Tue, 07 Aug 2001 14:13:36 -0400

Surely, this cannot be a random number generator, as the same number will be  
generated at the same time of day.

>>> "Leif Svalgaard" <leif@leif.org> 08/07/01 02:07PM >>>
From: Debbie Panco <dpanco43@ix.netcom.com>

> Rob,
>   Nope, not looking for a random key to a file.  Just a way of assigning
> a random pin number to an individual/account.

get time of day hh:mm:ss
compute x = 12345 + hh * 3600 + ss * 60 + mm 
compute z = x * x

this gives a ten-digit number z.
pin(1) = z.digit(6)
pin(2) = z.digit(4)
pin(3) = z.digit(5)
pin(4) = z.digit(7)




+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com 
+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.