similar to: generating random odd integer

Displaying 20 results from an estimated 20000 matches similar to: "generating random odd integer"

2009 Jul 07
1
scope_out plugin
hi i want to install scope out plugin script/plugin install http://scope-out-rails.googlecode.com/svn/trunk but i get the error plugin not found i use window what should i do? thanks in advance -- Posted via http://www.ruby-forum.com/.
2006 Feb 15
1
Generating random walks
Hello, here is another question, how do I generate random walk models in R? Basically, I need an AR(1) model with the phi^1 value equal to 1: Yt = c + Yt-1 + E where E is random white noise. I tried using the arima.sim command: arima.sim(list(ar=c(1)), n = 1000, rand.gen = rnorm) but got this error since the model I am generating is not stationary: Error in arima.sim(list(ar = c(1)), n =
2006 Feb 14
6
Creating a String of Random Characters and Numbers
I want to create a random string of length n that is made up of characters and integers. Is there a function in rails or ruby that allows me to do this? Thank you my friend :-). John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the freshest software engineering information on the net
2002 Aug 07
3
Forcing integers to be nominal
Hi everyone, I've got a problem with an analysis of variance where it appears that my independent variable is being treated as an integer when it should be nominal. The data are being loaded from an SPSS file and the independent variable 'YearColl' corresponds (surprisingly enough) to a student's year in college. :-) The integers 1-4 are used in the dataset for this purpose. My
2018 Sep 20
4
Bias in R's random integers?
Hello, On Thursday, September 20, 2018 11:15:04 AM EDT Duncan Murdoch wrote: > On 20/09/2018 6:59 AM, Ralf Stubner wrote: > > On 9/20/18 1:43 AM, Carl Boettiger wrote: > >> For a well-tested C algorithm, based on my reading of Lemire, the > >> unbiased "algorithm 3" in https://arxiv.org/abs/1805.10941 is part > >> already of the C standard library in
2006 Oct 13
2
Re: Generate Random Numbers in dialplan
On Fri, 2006-10-13 at 12:52:38 -0400, Jon Weisman <jweisman@ibell.net> wrote: > Hi All, Anyone know how to generate random numbers in the > dial plan? I've tried using the RAND function but it doesnt > work. Basically I need to generate a random 5 digit number > everytime a particular extension is dialed and then save that > into
2008 Jul 05
5
help about random generation of a Normal distribution of several variables
Hello. Somebody knows how can I generate a set of n random vectors of a normal distribution of several variables? For example, I want to generate n=100 random vectors of two dimensions for a normal with mean c(0,1) and variance matrix: matrix(c(2,1,1,3),2,2). Thanks in advance, Arnau.
2003 Jan 02
3
random number generation
Can a single random number be generated in R? I have an exercise that wants to simulate coin tosses, and I cannot seem to find a good example of the use of random number generation in R. Any help? Joshua Gramlich Chicago, IL
2010 Oct 09
3
[LLVMdev] [LLVMDev] Does LLVM have a random number generator?
Hello, does LLVM already have a Random Number Generator built into it's library somewhere? I know code generation is suppose to be deterministic, but when producing a random number can be deterministic if the random number generator is also deterministic. - Thanks - Jeff Kunkel
2009 Nov 13
2
random numbers in C
I need some random numbers in my C program. Here a small example: //////////////////////////////////////////////////////////////////////////////// #include <R.h> void rand (int* n) { int len = *n; for (int i = 0; i < len; i++) Rprintf("%1.5f ", unif_rand()); } dyn.load("rand.dll") .C("rand", as.integer(10)) dyn.unload("rand.dll")
2003 Dec 01
2
help with random numbers and Rmpi
Dear People, This may not be the right place to ask a question about Rmpi, but I don't know of a better one. I am trying to get a simple program working using Rmpi with the model of 1 R master and n C slaves. What I am trying to do is have each of the C slaves generate a random number from U[0,1], and then have the master collect all n numbers as a vector and output it. However even doing
2006 Jul 18
13
RANDOM
I am pretty much new at this ROR game and had what I think to be a simple question. I have a set of Sponsors that I would like to be able to select one at random and display in the my html. I have already set up the DB, scaffolded, set index controller and all is working smoothly. I know that I can display them all by doing <% for sponsor in @sponsors %> <%= sponsor.name %>
2006 Oct 14
1
Re: Generate Random Numbers in dialplan
On Sat, 2006-10-14 at 12:00 -0700, asterisk-users-request@lists.digium.com wrote: > Steve, > > Is RAND available in the latest trunk or do I need the 1.4 > beta? > > If I do show function RAND it says its not available. > > Thanks, > Jon Jon-- Forgive me, you didn't say which version you
2018 Dec 28
2
[PATCH v2 nbdkit] common: Improve pseudo-random number generation.
v2: - Fix seeding. - Add a test that nbdkit-random-plugin is producing something which looks at least somewhat random. Rich.
2009 Nov 24
2
random effects correlation in lmer
I am having an issue with lmer that I wonder if someone could explain. I am trying to fit a mixed effects model to a set of longitudinal data over a set of individual subjects: (fm1 <- lmer(x ~ time + (time|ID),aa)) I quite often find that the correlation between the random effects is 1.0: Linear mixed model fit by REML Formula: x ~ time + (time | ID) Data: aa AIC BIC logLik deviance
2009 Nov 16
2
(Parallel) Random number seed question...
Hi All, I have k identical parallel pieces of code running, each using n.rand random numbers.? I would like to use the same RNG (for now), and set the seeds so that I can guarantee that there are no overlaps in the random numbers sampled by the k pieces of code.? Another side goal is to have reproducibility of my results.? In?the past I have used C with SPRNG for this task, but I'm hoping
2002 May 17
2
SSH 3.2.2 on Solaris 8 with /kernel/drv/random
Hi, I'm like to try a get the new release to work with Sun's new device, that can be installed with patch 112438-01. I compiled SSL attempting to point it at the random device: cd openssl-0.9.6d ./Configure solaris-sparcv7-gcc make DEVRANDOM="/kernel/drv/random" And then ran the SSH configure: ./configure --prefix=/opt/OBSDssh --with-pam --without-rsh \ --sysconfdir=/etc/ssh
2006 Aug 08
8
Generating a unique id ?
Hello, I need to generate a unique ID, so far I''ve unit tested this under 100000 iterations and it seems to work : now.to_i.to_s + ''-'' + now.usec.to_s + ''-'' + rand(1000).to_s Is there a better way ? Thanks Notes : 1) without usec, few percents of generated values are not uniques 2) the id generated is a string so the presence of
2009 Dec 17
1
Random Number Generation in a Loop
Dear R helpers   I am having following data   Name           Numbers A                  25 B                   3  C                  13 A                   5  B                   7 C                   0 A                   2 B                 10 C                   9   CONDITIONS   If Name is A, min_val = 1.05, max_val = 1.30 If Name is B, min_val = 1.30, max_val = 1.60 If Name is C, min_val =
2010 Oct 09
0
[LLVMdev] [LLVMDev] Does LLVM have a random number generator?
I am plugging this into my code. If someone wants to take it out and add it to the llvm library, it's a simple Linear Congruential Generator, but here it is: typedef struct random_number_gen { unsigned a, c, seed, m; random_number_gen( unsigned seed, unsigned modulo ) : seed(seed), m(modulo) { unsigned primes[] = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 };