» Home » random » Page 1
Is this random number generator able to generate truly random numbers or at least Encryption - secure random numbers?
by skriefal in Web Design

I have spent years , many years of my life creating this algorythm for generating cryptolologicaly secure random numbers I lost a former versions source code, so I remade it from scratch , this is a program I call Enigma it is integer array based random number generation what I would like to ask is is this a cryptologically secure random number algorythm and what should It be called? since I do

jQuery random fading images (from siblings) in random divs (with specific class)
by Vrki in Web Design

I wanted a script to fade in and out of images within a div using jQuery.

I'm using the following code (from http://jonraasch.com/blog/a-simple-jquery-slideshow):

function slideSwitch() {
var $active = $('div.box1 img.active');
if ( $active.length == 0 ) $active = $('div.box1 img:last');
var $sibs = $active.siblings('img');
var rndNum = Ma

Near seeds in random number generation may give similar random numbers?
by Florian Derudder in Programming Languages

I'm using sequential seeds (1,2,3,4,...) for generation of random numbers in a simulation. Does the fact that the seeds are near each other make the generated pseudo-random numbers similar as well?

I think it doesn't change anything, but I'm using python

Edit: I have done some tests and the numbers don't look similar. But I'm afraid that the similarity cannot be noticed

Difference between random draws from scipy.stats…rvs and numpy.random
by bhupesh in Programming Languages

It seems if it is the same distribution, then random draws from numby.random is faster than that from scipy.stats.....rvs. I was wondering what causes the speed difference between the two.


c++ generate a good random seed for psudo random number generators
by walkur in Programming Languages

I am trying to generate a good random seed for a psudo-random number generator. I thought I'd get the expert's opinions. let me know if this is a bad way of doing it or if there are much better ways.

#include <iostream>
#include <cstdlib>
#include <fstream>
#include <ctime>
unsigned int good_seed()
unsigned int random_

Objective-C repeatable random number generators a la java.util.Random
by Matt Corr in Java

For testing and other purposes, it is often useful to be able to generate multiple streams of repeatable random numbers. In Java, there is java.util.Random. You can create multiple Random objects each with their own seed so that subsequent calls to any particular Random instance will return the same sequence of pseudo random numbers every time you run the program. I've seen the documentation

How do I generate random numbers in Haskell, using random-fu, with platform-agnostic code?
by Octopuss in Programming Languages

I can't figure out how to use Data.Random.Source.IO to generate random numbers in a multiplatform way.

I can generate random numbers in Unix using Data.Random.Source.DevRandom, and there is an example in the GitHub documentation for Windows using Data.Random.Source.MWC, but there is no example code for using Data.Random.Source.IO.<

Is there a statistical difference between generating many random vectors vs a single random matrix
by ack in Programming Languages

Is there a statistical difference between generating a series of paths for a montecarlo simulation using the following two methods (note that by path I mean a vector of 350 points, normally distributed):


for path = 1:300000
Zn(path, :) = randn(1, 350);

or the far more efficient B)

Zn = randn(300000, 350);

Random engine state and multiple deterministic independent random sequences
by Brian O'Neill in Programming Languages

The C++ TR1 random number generation scheme has improved the old C runtime library in terms of keeping a separate state for random engines in different threads, or for independent random sequences. The old library has a global state machine, and this is usually bad.

However, when implementing an algorithm that requires deterministic random sequences, I find it annoying to have to pa

CSS Random background image position within range and increment; random number for transformation timing
by monkee in Web Design

I am working off of a 480x480px sprite, with 225 individual 32x32px images laid out 15x15 grid so it's a perfectly square jpeg. I am trying to:

Create a way to generate random numbers in the background-position fields that will inject a random number within the range and increment I specify (range would be 0-480, inc is 32). This is in order to call random sprite background images f


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .