Questions tagged [Random numbers] (41)

3
answers

How to achieve diversity randomly in PHP?

Hello! I needed random numbers in a certain interval. I used a method mt_rand(322, 595); But every time the number of turn out about four hundred: 423, 436, 431, 451. Is there any way to change this randomly?
Eden.Hirthe asked April 4th 20 at 13:55
1
answer

How to make a random activation of one of the objects in Unity?

the problem I have is this, it is necessary that the character has entered the trigger, and one of the 8 objects randomly activated. Rummaged a heap of sites and guides, tried to do something myself but without success, hope for love help. Thanks in advance.
Quinten_Keeling89 asked April 3rd 20 at 23:54
1
answer

How to make random English words to JS?

Hello, there are some array of letters. Task: Need to create a generator of English words to be readable with the vowels (not necessarily meaningful). For example: Dangerous Myticas, Ailama Frantic, Icy Riffel, etc., to maintain readability. How?
Alexandria58 asked April 1st 20 at 15:54
3
answers

How to create a random sample?

I have a few domains rimantidine.Russia repair-Queens.Russia remontejam.Russia remontados.Russia remotedatabase.Russia For each domain there is a page "aeg" and other brands rimantidine.RF/aeg repair-Queens.RF/aeg remontejam.RF/aeg remontados.RF/aeg remotedatabase.RF/aeg I have an array from which I need to select rows.'hol...
Vanessa_Reinger asked April 1st 20 at 15:26
0
answer

In numpy c using mt19937 to a binary sequence?

Need to binary sequence using Vortex Mersenne. The idea was to use the built-in pitoni random in the following way:import random as rd p=[] k=int(1.1*10**8) for i in range(k): p.append(rd.getrandbits(1)) #print(p) s=" for i in p: s+=str(i) a=p.count(0) b=p.count(1) f = open('sec.txt', 'w') f.write(s) f.close() print(a,b) b...
adell.Ullri asked March 31st 20 at 21:52
3
answers

Why rand() can give very close values?

Why rand() sometimes works fine but sometimes it can issue in a row like this: 1173 1174 1250 1259 These values led function for 4 days at 0:00 upd. Since PHP 7.1.0, rand() uses the same algorithm of generation of random numbers that mt_rand(). code which the cron runs once a day: echo rand(1000,1300); ?>
Kennedi67 asked March 31st 20 at 16:06
3
answers

From what sources you can draw information about random number generators?

Prompt, please, in what sources you can find information about random number generators? (description of the algorithm,highlighting shortcomings,the implementation in any language) Quick preview the first page of Google did not give any results, and in the directory Schneier often generators are only mentioned but not descr...
Buck.Block asked March 30th 20 at 00:33
1
answer

I can not understand why this bug?

Write a program but encountered an error I want when I pushed the button with the name "btn2" variable Words1 and Words2 has changed the value.And at the same time when you press the button "btn" variable Words1 Randomly mixed.Here is the whole code:from tkinter import * import time import random tk = Tk() canvas = Canvas(...
andre asked March 30th 20 at 00:15
1
answer

Number generator in specified range. how to do?

Hello. For example, I have a number 48004001680001. I want to generate a number that is only changed by the first five digits and the last single digit. That is, for example: 57869 00168000 1 88590 00168000 9 03556 00168000 8 How do I implement it? Is there a special program for this?
foster_Wucke asked March 25th 20 at 12:20
0
answer

What to write in brackets when you create a random number generator in C#?

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { Random rnd = new Random(1); int x = rnd.Next(); int y = rnd.Next(); Console.WriteLine(x); Console.WriteLine(y); } } }
Erik asked March 24th 20 at 10:41