SL Talkz

Full Version: Bash script to return a random number between 0 and 100
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Let's write a script which will use this variable and some arithmetic to return a random number between 0 and 100.
Code:
#!/bin/bash

a=$RANDOM

b=$(( $a % 100))

echo $b
An essay is a good method to embed all the facts and figures together which had been received from different sources. The students can show creativity in each stage of the process of writing an essay. Essay writing contributes to intellectual development of the students and helps the student become Sharp and organized in his academics and daily life.The write my essay services allow the students to prepare high quality essays.Writing skills are important in all fields and therefore students must be careful in quality writing.