Questions tagged as 'random'

1
answer

Help in randomized variable comparison

I'm making a game of colors, in it I have a random that randomizes buttons in a certain sequence. The value of these buttons are concatenated in the X variable that sets my particular sequence. ex: botão1 = "1"; botão2 = "2"; bot...
asked by 29.11.2014 / 20:16
0
answers

Random function exclusive and without repetition - Language C

Well, I'm doing a C language program, and I need to do some raffles, but they can not be repeated, the program does the input control of a lecture, and will have a draw, in that draw can not be drawn the same numbers, I'm doing lottery by row an...
asked by 25.11.2018 / 19:23
0
answers

GLMM with data distribution in 3 different periods in time

I'm trying to create a model in R, which involves many explanatory variables, a response variable called '' HUNTED '', and the data is spread over 3 different time periods. My dataset is too large and I've just put some of it here so you can und...
asked by 05.09.2018 / 23:11
2
answers

Generate random number without repetition in C

Hello, I am making a memory game in c, and would like to know how to generate a random number without repetition. I will post what in the function so far. Do I need to do another function only to check if there is a repeated number? void preen...
asked by 21.06.2015 / 22:14
0
answers

Notices at random times is possible?

I am using BroadcastReceiver along with alarmmaneger to send notifications and among these I thought about sending a notification between the hours of 12 the 19 randomly like if today sent the 12 hours and amanaha the 16 so that I could not thin...
asked by 21.07.2018 / 19:16
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
0
answers

Rand generating equal numbers

I have to do a program that generates random numbers for x1 and x2 and perform the operation F = x1 * x1 + x2 * x2; but I'll repeat this 10 times and I'll save the smallest value of F; then I'll repeat 100 times and save the smallest value of F;...
asked by 24.06.2018 / 23:17
3
answers

Shuffle numbers from a list? [duplicate]

Well, initially I do not understand much of a list in C #, but I have a list of type int that will always have 4 elements that are: 1, 2, 3 e 4 , I'm assigning them with .Add , if someone knows another Give me a little help...
asked by 10.09.2015 / 06:20
1
answer

random choice in python

I am a beginner and I am creating a program to make tables, but I did not want the program to follow a growing order like "1x1, 1x2" and so on. So I used a "random.choice" function to randomly display the tables, I created a list to show the tab...
asked by 21.05.2018 / 01:36
0
answers

Random Python Monte Carlo Function

I need to generate random numbers. A number of numbers in the house of 10 ^ 5 and 10 ^ 6 random numbers. The randint function of the random library seems to me not to have a good degree of randomness when it generates so many repeating number...
asked by 12.04.2018 / 21:58