Questions tagged as 'random'

0
answers

Game of duck, duck, duck, goose

I have the following code, to make a game of the duck-goose using for in PHP, but I just can not find how to do it. The game consists in that there is a n number of players, in this case there are 4, from that, print to the pl...
asked by 16.02.2018 / 00:11
2
answers

Create a list of random numbers in python

I'm trying to create a list of random numbers in python. I managed to create it but I just want to see the int () type and I see all types of float (), does anyone know what I can do? This is what I did: import random def listaAleatorios(n):...
asked by 11.12.2017 / 23:13
1
answer

Get a value of an input with Jquery [duplicate]

I have to make a page that thinks of a random number and then with an input enter that number, if it is not the random number that tells me if it is smaller or bigger. Well, what I find a problem is that when I input an input does not tell...
asked by 26.10.2017 / 20:10
0
answers

How to generate random numbers that increase their probability after being generated

I have the following code that creates a matrix a predefined size and fills it with empty spaces public class Juego { String tablero[][]= new String[15][35]; public Juego() { for( int i = 0; i < tablero.length; i++){ for(...
asked by 13.10.2017 / 07:40
3
answers

run in javascript

I would like to know how I do so that javascript executes the following but without the need for the button, which is automatic when I open the page <!DOCTYPE> <html> <head> <SCRIPT language=JavaScript&g...
asked by 26.08.2017 / 22:28
2
answers

random in javascript

I would like to know how I do for javascript to execute the following, the program shows me what I put literal (EXAMPLE random_text2 () taking into account that the random is 2) but I want to run the random text function <!DOCTYPE> <...
asked by 13.06.2017 / 00:28
4
answers

Random array Android

I have an array in String and I want to extract several values from it and show them in a textview when I press a button but I do not know how to get several data from the array. Here is what I have protected void onCreate(Bundle savedInstance...
asked by 20.05.2017 / 21:29
1
answer

Random between certain numbers

Hi, I wanted to know if it is possible to generate a random number between specific numbers. For example I have a board of 9 numbers (1,2,3,4,5,6,7,8,9) but the squares (2,6,8) are already occupied. Is it possible to create a random where only t...
asked by 17.11.2017 / 14:56
2
answers

How to select an internal file randomly from a folder and then save it? C # [closed]

Hi, I'm here I'm a new user in Stack, I've arrived here because of this questionnaire I have, I'm doing a project in C # Personal in regard to this program I want to randomly select a file from an internal folder of the project (Any type of file...
asked by 10.09.2018 / 16:51
2
answers

Result of iteration of array in a variable

Hi, what I want is to get a random value stored in a variable after iterating a loop array 10 times. The code that I've made just throws me a letter. If anyone can give me a hand with this, I would be grateful. Greetings. var palos =...
asked by 21.08.2018 / 13:43