Seed generator using 'current' World Population count
by Pranam Janney
02 Jun 2010
(Updated 03 Jun 2010)
Generates a seed that could be used to set the state for random number generation in matlab.
|
Watch this File
|
| File Information |
| Description |
Random number generated using Matlab (i.e. rand, randperm,etc) is pseudo-random and not pure-random. This script provides a seed that can be used to set the state in order to generate "near-pure" random numbers using rand, randperm etc. The script grabs the "current" world population count from a website and jumbles up the digits and outputs the seed.
World population count is not "predicable' and randperm of digits inside 'current' world population count is highly random, thus the seed generated is helpful in generating "near-pure" random numbers
Usage:
sd = GenSeed; %generate seed
RandStream.setDefaultStream(RandStream('mt19937ar','seed',sd)); % set the state
rand(1,10) %generate "near-pure" random numbers
|
| MATLAB release |
MATLAB 7.9 (R2009b)
|
| Other requirements |
Needs an internet connection to access the website |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 03 Jun 2010 |
Added read_specific_data.m |
|
Contact us