Questions tagged as 'random'

2
answers

Generate a word between words defined [PHP]

I'm pretty new to PHP , but I already know the basics of HTML , and a large part of Ruby script (not ruby on rails ). Well, you know, how can I generate a word or something random, we can say, but not so random. As if...
asked by 07.06.2015 / 00:16
2
answers

Random button colors

I would like my buttons to change the color every time the page refreshes. I made a java script code that is not working and would like help identifying my error. <script> let r = Math.floor(Math.random()*255),...
asked by 06.08.2018 / 20:19
2
answers

How to make a minimum ceiling and a maximum ceiling in a random number? [duplicate]

I'm developing an application in Java and in my controller I have a function that generates the random numbers. Example: In my first column I want you to manage from 0 to 8, until then OK. In the second column I want to generate 9 to 17,...
asked by 17.12.2017 / 20:55
2
answers

Limit result to a random

I use the query SELECT * FROM mpbbolao WHERE eTIME1>=2 LIMIT 1 for example. To get a query result I use LIMIT 1 . How can I randomize what this "1" result will be?     
asked by 21.10.2017 / 20:38
2
answers

How to generate random numbers at the command prompt?

I have a file in .cmd and I need it to generate random numbers with 10 algorithms. Such as 9006100001 and 1579970319 generated randomly. I currently have the following function generating random numbers based on the system time....
asked by 17.10.2016 / 03:38
1
answer

PYTHON Saving a result in txt

I have this code that generates combinations of numbers When I squeeze, he starts the combinations what I want and that it save these combinations in a txt file import random c1 = (random.choice([9, 9])) c2 = (random.choice([1, 1])) c3 = (ran...
asked by 27.12.2018 / 01:19
1
answer

Random numbers without repetition (JavaScript) [duplicate]

Good morning, I created a small lottery game, where 06 numbers are generated between 0-20, the user informs his guess of 06 numbers and the system returns how many numbers were hit and which numbers hit. The problem is that the randomly gen...
asked by 09.01.2018 / 14:17
1
answer

Create random classes and ids

How do I create random classes and ids in HTML? A platform here with whom I work, she, every page update, one day in Footer updates your classes and ids in a random way. For example, now it looks like this: <div id="wenro66zls" class=...
asked by 18.07.2017 / 16:35
1
answer

JAVA - Generate a random & scrambled word

I want to generate a random and scrambled word from a vector. At the moment it is already generating a random but not scrambled word. I created a method called scramble where the words will be shuffled but I do not know I am not able to call on...
asked by 22.09.2017 / 20:39
1
answer

How to use random script

I have 3 Google adsense scripts with 300x250 - 160x600 - 728x90 How do I get one of these scripts to be loaded each time the page is loaded? I would like each Reload of the page to be shown 1 script. Example: I have the one that is u...
asked by 05.05.2017 / 18:12