Questions tagged as 'random'

6
answers

How is computer randomization generated?

Questions How is computer randomization done? Which algorithm or mathematical basis the computer uses to generate these numbers? For example: In JavaScript I use Math.random() it me returns different numbers every time as fo...
asked by 12.03.2014 / 14:48
4
answers

Generate random numbers that result in a fixed sum

I need to generate random values for the inputs text of my table (remembering that it can have N rows), my code today can generate the numbers but I need the number generated to be at most X so that it does not exceed the value of the column Max...
asked by 24.02.2014 / 13:58
4
answers

Draw where the name can not be drawn more than once

I need to make a simple draw software, but I do not know how to get the names that were inserted in the list box and draw one among them. The same name can not be drawn more than once. How to do this part?     
asked by 31.05.2014 / 06:19
3
answers

Range of random numbers in C

In a certain program, I need to generate a random value greater than 1000 (with a limit set by me for up to 5000 (maybe still a very high value)). This unique code refers to a type of registration to be performed. After solving some doubts of...
asked by 05.11.2014 / 01:09
4
answers

How to generate random numbers in Python?

I'd like to know how to generate random numbers in Python. I'm with version 3.4.     
asked by 24.07.2015 / 02:02
3
answers

How to generate large random numbers in C ++?

I'm trying to make a random number generator of [0,4], including these, but the problem is my teacher indicated that I used 4 million to generate random numbers and that value exceeds% with% / strong>, then there are two questions: How to g...
asked by 16.08.2017 / 19:00
1
answer

Function to generate random alphanumeric characters

I need a C # function that generates a String of random alphabetic and numeric characters of size N .     
asked by 01.09.2015 / 21:38
1
answer

Random () generating repeated numbers

I'm developing a small application to import XML, which searches for the items in the note and performs the search of the same in% of the internal% of the company. When the item is not found, the link is done manually and this information is sav...
asked by 25.03.2015 / 13:35
3
answers

How to shuffle characters from a String in Java at random?

I am developing a password generator program. Here you can set the percentage of numbers, letters and special characters you want to have in your password, as well as the size of your password. Later I concatenate the numbers, letters and symbol...
asked by 12.11.2015 / 20:43
4
answers

Select string randomly

I need a way to randomly create a string between some options. Let's say I have the strings "A" "B" and "C", would it be possible for Java to choose randomly?     
asked by 10.11.2014 / 19:17