I want to generate several point on a line, and this is the command:   \documentclass{article} \usepackage{tikz,pgf} \usetikzlibrary{calc} \begin{document} \begin{figure}   \begin{tikzpicture}     % this command generate a series of .0.0.0.0.0.0.0.     \foreach \i in {-2,...,1}{\fill ({random(-40,36)/10+0.2},0.2) circle (0.2cm); };       \end{tikzpicture} \end{figure} \end{document}   Very thanks!  =========================update======================================  Thanks for percusse, the problem is in the negative parameter of function random. Just change like this:    \foreach \i in {-2,...,1}{\fill ({(random(0,76)-40)/10+0.2},0.2) circle (0.2cm); };
\documentclass{minimal} \usepackage{tikz} \begin{document} \pgfmathparse{random(-5,5)} \pgfmathresult \end{document}   Works, but I have a .0.0 that not supposed to be here.
Is Iron Man stronger than the Hulk? In Avengers: Endgame, when Hulk initially uses the new Infinity Gauntlet, it takes a tremendous effort from him (in addition to almost burning his entire arm), in order to snap his fingers and restore the world as we knew it. Yet at the end of the movie, when Iron Man uses the Gauntlet, it seems very easy for him to snap his fingers.  How was Tony able to wield the stones with such ease when Hulk was clearly struggling with it? How to report issues with the mobile SE application Solder does not stick to tip of soldering iron? Basic question here, but it's driving me insane!  The solder does not seem to stick to the tip of my soldering iron. After the iron heats up, the tip appears black (sometimes on all sides and sometimes on one side), then either it doesn't melt the solder at all, or it I fiddle around with it for a while; it melts the solder, but the solder rolls into itself into a ball and doesn't stick to the tip.  I've seen this many times while soldering before and usually it's solved by cleaning the tip on a soldering sponge or cooling it down and scraping the tip off with a blade, but I have scraped this particular one many times and still it's the same problem: it heats up and gets black, then the solder doesn't stick to it.  It doesn't help that this soldering iron has a very fine tip and I have to use it to solder very tiny chips and wires under a microscope (I'm just starting to learn soldering under microscopes).  Any ideas on what I can do?    PS: Is scraping the tip a bad idea? I have been doing it with my other bigger soldering irons and it seemed to work (at least in most cases) but I am not sure whether it is a good solution or not. How to delete column/field in PyQGIS? What is the use of a persistence layer in any application? Apply subsurf modifier to only part of an object How can I apply a modifier only to a part of an object? I want to model a goblet with a pedestal, and if I add a subsurf, the pedestal, of course, gets an unwanted round shape. How can I avoid that? I have tried Googling it, but, to my surprise, found nothing. How to solve and see resolution of $13^{53} \pmod 7$ using Fermat little Theorem? Check and fix SD card errors within Android itself? How to install Intel CedarView drivers on Ubuntu 12.10 or higher? I am looking for instructions on how to install cedarview graphics drivers on Ubuntu 13.04 32bit.  My graphics hardware is a GMA3600 aka Power VR SGX545.  EDIT: It seems that they are not in Raring yet, but only Precise:   EDIT2: they seem to be closed source. No "Login using Google" option in Android app I am using field image to insert image into article. The image can't show in article body.   How do I insert the image into article? "put X down to" vs. "put down X to": subjects of verbs with two particles I expect I would have to put down many coats to do the job. ()   One factor to distinguish phrasal verbs from prepositional verbs is particle movement. Phrasal verbs can place the particle before or after direct object, whereas the preposition in prepositional verbs must precede the noun. (Biber et al. 1999)    So, I'm confused when analyzing the fragment "put down many coats to" because I'm not able to distinguish whether "put ... " is a phrasal verb or a prepositional verb. The confusion arises when I read in the Oxford Dictionary of English, under 'put' &rarr; 'phrasal verb', the form "put something down to" is correct.  So, the above sentence would be rewritten as follows :     I expect I would have to put many coats down to do the job.   Am I right? If not, how do I correctly distinguish phrasal verbs from prepositional verbs in the cases, like this one, where there are two particles (in this case 'down' and 'to')? What does UNDEF and notype() mean when seeing the C++ library information using dumpbin? What's the best way make an "augmented" coefficient matrix? When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants.  This is often done in books by putting a vertical line between the last column and the next to last column.  What is a good way to do this in LaTex? Does the proof of Bolzano-Weierstrass theorem require axiom of choice? Proposition      Let $\mathcal{P_e}$ be the set of functions $p_e(x) = a_o + a_2x^2 +  \cdots + a_{2n}x^{2n}$, $p_e : \mathbb{R} \to \mathbb{R}$      Show that all $f:[0,1]\to\mathbb{R}$ can be uniformly approximated by   elements in $\mathcal{P_e}$   Attempt:    Since we are talking about polynomials let's try play with Weierstrass Theorem  By definition $\mathcal{P_e}$ is dense in  $C^0([0,1], \mathbb{R})$ , if for every funciton $f \in C^0([0,1], \mathbb{R})$, $\exists p_e \in \mathcal{P_e}$ such that $\forall \epsilon &gt; 0, \forall x \in [0,1], ||p_e-f||&lt; \epsilon$  So we want to show $\|p_e - f\| &lt; \epsilon$  Try something like...since every continuous function is approximated by polynomials i.e. $\forall \epsilon &gt; 0,\ \|f - p\| &lt; \epsilon$, therefore let $p$ be a polynomial, $p = a_0 + a_1x + a_2x^2 + a_3x^3 + \cdots$  $$\|p_e - f\| \leq \|f - p\| + \|p - p_e\|$$  $$\Rightarrow \|p_e - f\| &lt; \epsilon + \|p_o\|,$$ where $p_o$ is an odd polynomial  $$\Rightarrow \|p_e - f\| &lt; \epsilon + \sup_x|a_1+a_3+\cdots+a_{2_n+1}|$$  Stuck.   In any case, $p$ and $p_o$ is poorly defined. What would be the standard approach to prove the proposition? Can there be an option to allocate rep from any site account for offering a bounty? I think it would be useful if we had an option when deciding to open a bounty on a question that we could choose to allocate rep from one site even though the bounty is being offered on another site.  For instance I would like to use my rep from SO for putting a bounty on a question that resides on SF. I don't have enough rep on SF to make it enticing. So when you click on "start a bounty" you get sliders for each site that you can pull your rep from, maybe make it where you need to burn up all your rep for the site that your asking the question on and then allocate more rep from other ones, if you have it.  thanks devinb for clearing up my question with your comments! " transfer rep INTO a bounty. But you can't transfer rep across accounts. So, the rep you'd 'lose' from SO would never actually go into your SF account, it would go straight onto a bounty on whatever question." – devinb Why not use "which"? What to use then? When looking for the path to an executable or checking what would happen if you enter a command name in a Unix shell, there's a plethora of different utilities (which, type, command, whence, where, whereis, whatis, hash, etc).  We often hear that which should be avoided. Why? What should we use instead? Undo apt-get remove open* ubuntu 12.04 How many regenerations does the Doctor have after The Time of the Doctor? In The Time of the Doctor, the Doctor says that he has a "new regeneration cycle". Does this mean he has another set of 12 regenerations, or just the one?