SL Talkz
Bash script to return a random number between 0 and 100 - Printable Version

+- SL Talkz (http://sltalkz.info)
+-- Forum: Tech (http://sltalkz.info/forumdisplay.php?fid=13)
+--- Forum: Tutorials (http://sltalkz.info/forumdisplay.php?fid=14)
+--- Thread: Bash script to return a random number between 0 and 100 (/showthread.php?tid=20)



Bash script to return a random number between 0 and 100 - yaka - 11-09-2017

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



RE: Bash script to return a random number between 0 and 100 - Jamescochran - 05-18-2018

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.