set.seed() function influence into random in R -


Today I got the first one in an set.seed function. It's useful at the same time, and I think how to use it, but I have a small problem - how to choose a real good number as the first parameter of this function?

Get one more from that question - how to set.seed () effect in random R in R? Maybe if I think the last one, then I'll answer first. Thanks a lot.

In short:
set.seed () You specify the starting point for all the "pseudo random number generators" that make random numbers in R . As the computer is very deterministic, there is nothing like a real "random number", like ? Set.seed

See the computer is always using an algorithm so that the so-called "pseudo random number" can be generated. These generators / algorithms work (often) iterative, so the next number is affected by its predecessor set.seed () defines the initial predecessor and thus presents the pseudo random number copy .

(See here :)

Which number do you choose which is irrelevant

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -