Questions tagged as 'random'

2
answers

Dynamic / stochastic object allocation in QML

I'm currently trying to do the following in QML at the same time: Dynamic loading of objects previously created a separate file; When doing what is previously described, select objects stochastically For this I am, very basically,...
asked by 26.10.2016 / 12:01
2
answers

I need a new random number for each line in a sql query (server)

I use the sql server . I need to use a random number in several different columns (the same random number) but I want a new random number on each line ... For example, let's assume that TABELAX has only 5 rows and I'll query the genre ......
asked by 16.11.2016 / 11:43
1
answer

Single random value

I have seen several posts about the subject but it is not exactly what I was looking for. Some time ago when I was in internship, they told me to save some records with a unique random id in each one, and they told me the name of that kind of...
asked by 14.04.2016 / 12:31
1
answer

Generate a random value in a track, excluding a track

Using Javascript how to do a range with random values with a deleted internal range? Exemplifying:    min | | | | | | x | x | x | x | x | x | | | | | | max       | | = accepted value | x | = value denied Code used: function gen(mi...
asked by 16.01.2015 / 13:41
1
answer

Read values from a table in SQLite

I need help in the following situation: I need to get the values of a column in the bank and write these values into a variable, and then this variable will randomly generate one of those saved data. Below the class where I create the bank:...
asked by 13.06.2016 / 06:22
1
answer

Images are repeating in ImageViews

I have 54 images I need to show only 8, but there has to be a random selection and they can not be repeated, I'm programming on the Android Studio platform. I use this code it works quietly, it shows the results in 8 ImagemView , More ....
asked by 14.09.2016 / 04:28
1
answer

Rename all files in a folder to random names

I need a command to rename all files in a folder to a random name, which keep the same file extension, and preferably with numbers, what I've achieved so far was this: forfiles /P c:\teste\ /c "cmd /c rename @path %RANDOM%[email protected]" however...
asked by 02.02.2016 / 18:20
2
answers

Guess a number, and in the attempts, through the percentage show tips

I'm trying to create a game where the user must determine a range and guess a random number that is generated within this range. When the user enters a number to try to guess, the program must respond with one of the following messages: Theco...
asked by 30.11.2015 / 21:02
3
answers

Problem getting random integer values in array

Eclipse does not point to any errors in the code, but does not execute. package gerarOrganizar; import java.util.Random; public class GerarOrganizar { public static void main(String[] args) { int i=0; int[]ranF =null;...
asked by 08.10.2014 / 19:10
3
answers

How to generate random arrays without repeated numbers on the same line?

I want to store random numbers from 1 to 60 in an array. When there are equal numbers in the rows, it is to generate another random number. Type, can not be: 11 55 55 43 49 30, but should be 11 55 52 43 49 30. There should be no repetitions....
asked by 27.08.2015 / 06:35