The tag has no wiki summary.

learn more… | top users | synonyms

9
votes
1answer
54 views

Randomly assign background colour for each frame

How can a randomly picketed background colour be chosen for each beamer frame? Note: This question is asked to round out the question Randomly assign color to background in the PDF whenever page is ...
3
votes
1answer
88 views

Random selection of file issues

I have tried to create an exam with random questions selected from different files as shown here Accessing randomly selected problems via the probsoln package The code I used works but is only ...
8
votes
2answers
340 views

How to Generate Random Variables then Use in Calculations in pdflatex

I'm basically trying to create multiple versions of a worksheet, each with different values for the variables in each question. To do this I'm defining random variables, then each time I compile the ...
8
votes
1answer
113 views

How to correctly decorate an ellipse with random steps

To create something that looks like the shape of a lake, the following code transforms the border of a blue ellipse with smooth random steps. The idea is taken from another answer. ...
7
votes
1answer
247 views

Gaussian random numbers

The Tikz manual has all sorts of different options regarding math, but the following is the first version which actually worked. Is there a better way to do this? \documentclass{article} ...
7
votes
2answers
309 views

Arbitrary Ragged Curves for Phase Diagram in TikZ

How can one draw a good looking curved random line extending along a diagonal connecting two arbitrary nodes in TikZ? (Also, how do I add arrowheads like I would usually do, or do I have to create ...
6
votes
1answer
50 views

Why doesn't fancyhdr like random numbers?

In the following MWE I use \lhead{\stepcounter{step}\arabic{step}} and it works perfectly, incrementing by 1 each page. I also use \chead{\setrand{100}\arabic{rand}} and get the same number every ...
10
votes
1answer
163 views

Random number without repetition in an \includegraphics

I have 58 images in PDF format. At the moment, each of them is in a separate PDF, such as 1.pdf, 2.pdf etc. I would like to include those 58 images in a random order without repetition. I found the ...
5
votes
1answer
82 views

Have a new seed in pgfmath more often

I'm using pgfmath in my code since I need some randomness and I want the seed used for the randomness to be updated each time I compile. I read that pgfmath is updating the seed every minute, which is ...
5
votes
1answer
71 views

Print arguments of a macro in a random order

I have the following (simplified) LaTeX code that simply prints all its arguments. \newcommand{\mm}[4]{#1 #2 #3 #4} Now, I would like the arguments to be printed in a random order, e.g., #2 #1 #4 ...
23
votes
3answers
483 views

How do I put a die roll at the top of each page?

I was thinking about a trick I heard of in old RPG books and wondered how you would do it in LaTeX. So it used to be hard to find RPG dice in stores (That is, dice with 4, 6, 8, 10, 12 and 20 sides. ...
6
votes
3answers
389 views

Drawing randomly ragged lines in technical drawings

I am having issues getting started on drawing a randomly ragged line, with finite variation, between two endpoints. The random function which uses variable rnd I think can be used, for instance, ...
7
votes
2answers
110 views

Generating random conversions

I am working on a system to randomly generate some exercises on unit conversion. The students get a exercise like 27.89 mm = ...... hm I achieved this whit the use of a random value generator ...
7
votes
1answer
132 views

ConTeXt+MetaPost: Non-conflicting random background and foreground colours

Overview Looking to create a page that has a random (and non-consecutively repeating) background colour with titles that are also random. Problem The code has two problems. First, generating a ...
7
votes
1answer
133 views

MetaPost: Randomly generated number, distinct from previously generated number

Overview Looking to create random page background colours where the same background colour never appears more than once in succession (i.e., red, green, blue, green, blue, red, etc. -- never red, ...
5
votes
1answer
165 views

MetaPost: Randomly variably thick curves

Overview Looking to emulate the following sinusoidal wave having random variations in both its filled and outline thickness: The wave has two parts: a variably thick filling and a variably thick ...
7
votes
1answer
194 views

Randomized coordinates in TikZ

I need to draw a number of `bacteria' in TikZ. Their coordinates and orientation needs to be random within a pre-defined scope. I have randomized the orientation successfully, but not the location of ...
5
votes
1answer
238 views

Creating random patterns in TikZ

I'm interested in doing two (not completely) separate things in TikZ, if I should open another question for one part, please tell me so. What I'm interested in is: Create a random array of filled ...
3
votes
2answers
128 views

How can I make random placed edges between two graph partitions?

I have to nodes (V1) and (V2) (representing sets of graph vertices) and I want to draw, say, 10 edges(lines) between them. I don't want to hardcode random locations so I did: \begin{pgfonlayer}{bg} % ...
7
votes
1answer
212 views

Draw randomized tree in TikZ

I am trying to draw a randomized tree using TikZ, that is, I'm looking for a macro \randtree{NN}{x} that attaches a randomized tree of maximum depth x to a node named NN. The nodes need not be visible ...
4
votes
0answers
102 views

How to randomly display a word from a list of words (a random student's name of my class)? [duplicate]

Last year, I came up with a solution to randomly display the names of my students in a presentation using the package tikz. Unfortunately, I'm not a LaTeX guru, and it's far from perfect: ...
6
votes
1answer
233 views

Random 3D shape

I created a picture for a random charge distribution and it currently looks like this \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections, decorations,circuits.ee.IEC, calc, ...
5
votes
1answer
87 views

How to seed \FPseed with a value that is unique for every compilation?

How to seed \FPseed with a value that is unique for every compilation? Is there a LaTeX macro to get the CPU tick so I can use it to seed? \documentclass{article} \usepackage{fp} \begin{document} ...
5
votes
1answer
82 views

Help me to recover the seed ! pdfuniformdeviate

I made a BIG mistake : I compiled a file and used some macro with pdfuniformdeviate. But I did not realized I will need to recompile this (official) document with the SAME random sampling. I keep all ...
6
votes
1answer
151 views

N in M : random choice

What is the most simple way, in pdflatex, to have a command such that \NinM{n}{m}{c}{d} will expand to c with probability n/m and will expand to d with probability 1-n/m ?
4
votes
1answer
385 views

How do I generate in LaTeX a list of random questions avoiding repetitions?

How do I generate in LaTeX a list of random questions avoiding repetitions? \documentclass{article} \usepackage[pdftex]{exerquiz} \usepackage{enumitem} \usepackage{tikz} ...
8
votes
3answers
439 views

Generating random numbers without repetitions

How do I generate in LaTeX a list of random integers, in a given range, avoiding repetitions? The command \pgfmathrandomitem selects an item from a list, but when inserted in a loop can select twice ...
7
votes
2answers
376 views

creating a list of random numbers using a loop

I am trying to write a loop that will generate a set of random variables to be used in the probsoln package. I would like to make a loop to generate A, B, C, etc. This exam will have a lot of ...
7
votes
5answers
1k views

Randomised LaTeX based multiple choice test

I would like to create a multiple choice test with LaTeX. It has the following boundary conditions: 20 questions (q) per test . 20 students (s) take the test, the order of the question should be ...
3
votes
4answers
301 views

How to randomly extract some pages of a PDF file, sort their pages, and finally bundle them into a new PDF?

Some books in amazon.com have excerpts (first several pages plus appendixes) from which we can know their contents, layouts, etc roughly prior to purchasing. Statistically I think it will be better if ...
2
votes
0answers
89 views

How to draw a smooth random blob with TikZ? [duplicate]

How can I draw a smooth, "natural" looking blob with TikZ? My approach \begin{tikzpicture} \draw [] (0,0)node[circle,draw,decorate,decoration={random steps,segment length=.3cm,amplitude=1cm},rounded ...
8
votes
3answers
694 views

How to draw a rectangle filled with random size circular pattern?

I wish to generate a rectangle with circular features present within (to represent water particles), something like this: Which shows that the incoming radiation decreases with distance (as ...
6
votes
2answers
207 views

Random start of line

I would like to add a random white space at the begining of each line in a flushleft typeset paragraph. The idea is to simulate a hand-written manuscript. I thought I could do trick lineno package ...
45
votes
1answer
1k views

Toward a Stamper Package

Imagine that you want to simulate a hand stamp on every page in some large documents. It must be an imperfect print, with random page-to-page variations in ink intensity, fading, rotation and blur. ...
8
votes
2answers
467 views

Random shuffle itemize

Is there an environment (or macro for itemize) that shuffles all items randomly each time the pdf is generated?
5
votes
1answer
199 views

Prohibit see-through text with gibberish on backside of page?

I'd like to have the backside of my LaTeX pages printed with "gibberish" to prevent someone from holding the letter against a lamp and reading the see-through text. Kind of like the PIN letters have ...
20
votes
1answer
670 views

Watermark random location

I would like to add an artistic watermark image on every page, at a random location on each page. I am considering the eso-pic package, but am open to just about any suggestion. Does anyone have any ...
26
votes
3answers
1k views

tikz: Distribute evenly and randomly circles

I want to fill a part of a picture with more or less evenly and randomly distributed circles which should not overlap. It would be okay if circles are only partly inside the shape. The density should ...
5
votes
1answer
303 views

Tikz randomly placed groups of objects

I would like to place several groups of three objects (two circle paths and one node) in a triangular area. I came up with the following code, which is based on a subdivision of the triangle in ...
17
votes
2answers
420 views

Selecting random elements from a comma separated list

I would like to have a command (either user-defined, or from a package, or whatever) that has the basic form: \selectNrandom{N}{list, of, comma, separated, elements}{code to execute} which will ...
7
votes
1answer
170 views

Random coefficients in the polynom package?

I am using the probsoln package to generate random math quizzes. For polynomial division, I can generate random integer coefficients, but I had planned on using the polynom package to auto-generate ...
5
votes
1answer
468 views

How to randomize content with examdesign package using Sweave

Forgive me in advance if this is a dumb question, or too specific to one package. I've been using examdesign to randomize the order of questions, but I also want to randomly generate the content. I've ...
9
votes
2answers
276 views

\rand inside \forloop creates identical values

I try to create a table with random entries... By browsing the random tag, I found some help on random number generators and I tried using lcg. Surprisingly I seem to create the same random number ...
11
votes
2answers
429 views

How to include random images?

I'd like to make LaTeX pick one image file randomly from a series of eight images, and include it. I found that ''lcg'' package can generate random numbers: \usepackage{lcg} ...
8
votes
1answer
482 views

Accessing randomly selected problems via the probsoln package

I have two datasets, each containing problems dealing with a specific topic. These problems are stored in external files (again, one file per topic) and loaded into the datasets in a random order. I ...
13
votes
1answer
521 views

TikZ: decoration - random steps: how to get twice exactly the same shape?

I'm creating a beamer presentation, in which I use TikZ. I am making a figure, on which I would like to highlight something (using \only<> command). My figure contains an ellipse that is ...
10
votes
4answers
723 views

How to randomly shuffle a sliced image?

I have no idea to shuffle the following grids of a sliced image. How to do this in (La)TeX or PostScript level? \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido} ...
4
votes
1answer
146 views

Random scale of square makes a rectangle

Why does this code generates a rectangle, not a square? \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[scale=rnd] (0,0) rectangle (1,1); ...
16
votes
2answers
679 views

Filling white space in title page with random numbers or a text

Is it possible to fill all white space in this template with numbers or a text? %---------------------------------------------------------------------------------------- % PACKAGES AND OTHER ...
7
votes
2answers
777 views

Automatically generated BINGO cards

I am trying to automatically generate a series of BINGO cards. So, I need a 5 x 5 table with square cells that allow text wrapping. I also want to randomly assign a word to each cell from a "bank" ...