i have this code which will generate
a number between 1 and 4
Code:
Random random = new Random(); random.Next(1, 4);
for example 1 to 4: 2,1,4,3
please help.
Random random = new Random(); random.Next(1, 4);
import java.util.*; import javax.swing.JOptionPane; public class DecimalToBinary{ public static void main(String arg[]){ List iarray = new LinkedList();
import javax.swing.JOptionPane; public class ConvertDtoB{
import socket timeout = 300 # seconds socket.settimeout(timeout)
#!/usr/local/bin/python COOKIEFILE = 'cookies.lwp' # the path and filename that you want to use to save your cookies in import os.path import sys cj = None ClientCookie = None cookielib
import urllib TheData={'a':'myPlot1','x1': range(10),'y1': range(10),'l1':'First Legend','t':'Some title','h':'Some X label','v':'Some Y label'} params = urllib.urlencode(TheData) f = urllib.urlopen("http://Domain.com/myLibs/LibFile.py", params) print "Content-type: image/png\n" print f.read()
<% import urllib
Leave a comment: