Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Seed command in database

This is a discussion on Seed command in database within the Database General forums, part of the Databases category; What is the use of seed command in random number generation? I am confused about how to use this command. Waiting for some help!!!!...

Go Back   Geeks Talk > Databases > Database General
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Database General Database common Questions

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2006
Contributing Member
 
Join Date: May 2006
Posts: 73
Thanks: 0
Thanked 7 Times in 7 Posts
joel is on a distinguished road
Exclamation Seed command in database

What is the use of seed command in random number generation? I am confused about how to use this command. Waiting for some help!!!!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-09-2007
Expert Member
 
Join Date: Sep 2006
Location: India
Posts: 131
Thanks: 1
Thanked 21 Times in 20 Posts
Innila is on a distinguished road
Re: Seed command in database

Hi,

Seed command is used to set the seed for the random number generator.
__________________
*** Innila ***
Reply With Quote
  #3 (permalink)  
Old 07-01-2007
Junior Member
 
Join Date: Dec 2006
Location: USA, New York
Posts: 23
Thanks: 3
Thanked 5 Times in 3 Posts
irinak is on a distinguished road
Re: Seed command in database

When taking a random sample of your data, you may want to do so in a way that is reproducible. In other words, you can generate the same sample if you need to. To do this, you will need to set the seed. The seed is the number with which stata (or any other program) starts its algorithm to generate the pseudo-random numbers. If you do not set the seed, stata will start its algorithm with the seed 123456789. To set the seed, use the set seed command followed by a number. The number can be very large, including 30 or more digits. Remember to this in a .do file or to write the seed number down somewhere. Set seed 2038947 ******************* seed syntax seed {value | time | 0} ; remarks the seed command supplies the seed value for random number generation. Time or 0 indicate that the current time will be used for the seed. If this command is not present, the time at program initiation will be used.
Reply With Quote
Reply

  Geeks Talk > Databases > Database General

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Relationship in Database RyanJames Database General 1 01-12-2008 12:51 PM
Backup of Database norman Oracle 3 10-13-2006 05:58 PM
Database access using C program fred C and C++ 1 07-13-2006 09:52 PM
Applying DDL scripts to a remote database Lokesh M Web Servers 0 06-23-2006 11:14 PM
Deploying to the database in WebSphere Lokesh M Web Servers 0 06-23-2006 11:12 PM


All times are GMT -4. The time now is 10:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved