Improved Random Number Generator 1

Version: 1

Downloads:950

Hits:13663

SourceYES

Link Broken:Report It!

Package:Without source

Price:$0

Package:Source included

Price:$0

More info Download

Description

Random number sequences generated in Delphi using the native Random function leave much to be desired. By default the same number sequence is produced each time the parent application is run. Matters can be improved to a certain extent by seeding the random number generator using the system clock by calling the Randomize function.

However, this does not change the fact that the algorithm used is quite simplistic. Algorithms of greater complexity that claim to yield more random sequences abound. However, it is not really necessary to code such an algorithm. Windows comes with an intrinsic random number generator in the form of the CoCreateGUID function. We demonstrate how it can be used with a minimum of coding to create a truly robust sequence of pseudo-random numbers.

Related:

Delphi - Pseudo-Random Numbers - Random - Randomize - Randseed

User Reviews:

User: User Rating: 5
Hoping this is a good once

Records 1-1 of 1

Write Review *
Your name *
Email *
(Your comments will be reviewed by our staff before they are posted)
Rate this product *
Captcha Image
Enter code from image *

 

Related:

Delphi Associative Arrays 1

JavaScript/PHP style associative arrays in Delphi

By: BrandsPatch LLC Homepage

Freeware

Windows Scripting Host component for Delphi (active scripting) 2.5

Allows running scripts in any scripting language supporting WSH. Operating with Delphi objects, published properties, public and published methods,...

By: Ekas Software

Freeware

Hex Editor Delphi 5 Control 1.0

Powerful Hex Editor Delphi 5 VCL Control. Features: Multilevel undo/redo; Print; Insert/Over edit mode; Fast find/replace text; View and edit as...

By: Penko Kovatchev

Freeware

AddUp 2

AddUp 2 could be the last calculator you will ever want. With a flexible work area and user-selectable button panels, this multipurpose tool packs...

By: Orefa.com

Shareware

WebCab Portfolio for Delphi 4.2

Delphi add-in Component and XML Web service implementation offering the application of the Markowitz Theory and Capital Asset Pricing Model (CAPM)...

By: Ben Fairfax

Shareware

Java Random Numbers - Random.Org API 1.5

Very lightweight and easy to use library that allows you to generate truly random numbers by means of Random.

By: Javarandom Homepage

Freeware

Random Numbers

Random Numbers JavaScript can be incorporated in your webpage to display 16 numbers that are displayed randomly each time the page is loaded. The...

By: The JavaScript Source Homepage

Freeware

Unique Random Numbers 1.0

This script returns a list of specified number of elements from another list such that each element in the returned list is unique and random.

By: code.activestate.com Homepage

Freeware

Random numbers in PHP

Random numbers in PHP is a tutorial for the users to create three random numbers between 0 and 9. A sample function for this creation is given on...

By: php-scripts.com Homepage

Freeware

Secure Programming : Random Numbers

This paper discusses how to get secure random numbers for your application. We describe how to take a single, secure, random number (a seed), and...

By: Carlos Aquino Homepage

Freeware