» Home » random » Page 1
Is this random number generator able to generate truly random numbers or at least Encryption - secure random numbers?
Category : 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


View Replies


jQuery random fading images (from siblings) in random divs (with specific class)
Category : 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

View Replies


Random engine state and multiple deterministic independent random sequences
Category : 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


View Replies


Objective-C repeatable random number generators a la java.util.Random
Category : 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


View Replies


c++ generate a good random seed for psudo random number generators
Category : 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_

View Replies


Near seeds in random number generation may give similar random numbers?
Category : 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


View Replies


Is there a statistical difference between generating many random vectors vs a single random matrix
Category : 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):


A)


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

or the far more efficient B)


Zn = randn(300000, 350);

View Replies


How do I generate random numbers in Haskell, using random-fu, with platform-agnostic code?
Category : 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.<


View Replies


Difference between random draws from scipy.stats…rvs and numpy.random
Category : 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.


-Joon


View Replies


How exactly should I implement a shuffle or random-number algorithm for an array to display quotes in random order?
Category : Programming Languages

I already know there's answers for this kind of thing, but I don't really know how to implement them in my code. Also, I would like to refrain from using any more functions unless neccessary.
Here's my code:


int main()
{
unsigned seed;
seed = 1;
srand(seed);
std::string starFox[8];
int x[8];
starFox[0] = "Do a barrel roll!";
st

View Replies


Next
2012 / 2017 Copyrights BigHow , All Rights Reserved .